Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-02-28 23:59:03.111762
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1437084674835205 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9734d0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-02-28 23:59:32.299482
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13597774505615234 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7661e0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:00:02.932687
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.16561555862426758 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9680c0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:00:32.367178
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13489532470703125 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4740f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:01:02.945078
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14585089683532715 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83a5c0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:01:32.488511
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13882899284362793 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d010f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:02:03.232336
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14041757583618164 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1370f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:02:32.594577
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1346583366394043 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d97e0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:03:03.283982
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14500713348388672 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa93920f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:03:32.694306
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1419658660888672 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f935980f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:04:02.661188
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.17680835723876953 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d410f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:04:31.786058
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13509559631347656 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9850f0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:05:02.435741
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1768958568572998 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19bc0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:05:31.923920
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13683462142944336 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f913850f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:06:02.638343
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14074993133544922 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1dc1080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:06:32.004936
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13811898231506348 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f965b10f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:07:02.821784
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1340320110321045 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff610f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:07:32.094224
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14168357849121094 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeab50f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:08:02.831048
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1414496898651123 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f838140f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:08:32.277797
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13663744926452637 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa395e0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:09:03.057716
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.22753000259399414 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f938650f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:09:32.361227
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1389913558959961 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa07370f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:10:02.968346
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.16039180755615234 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c360f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:10:32.536271
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1393592357635498 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab0210f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:11:03.187149
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14274263381958008 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa062080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:11:32.645894
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14438199996948242 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88297080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:12:03.300697
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14118480682373047 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a8b00f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:12:32.743625
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13496923446655273 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4b370f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:13:02.441344
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1445460319519043 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f8d90f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:13:31.835997
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13589143753051758 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88c1a0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:14:02.744471
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.17924880981445312 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa780a0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:14:31.919418
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13772988319396973 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f813d8080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:15:02.698128
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14243674278259277 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95dc30f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:15:32.022295
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13782119750976562 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0c690f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:16:02.768273
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14460182189941406 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ef60f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:16:32.119316
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13609862327575684 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f787d1080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:17:02.820194
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14411568641662598 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa2a0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:17:32.246406
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1353161334991455 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f850700f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:18:02.929527
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14516234397888184 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98fed080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:18:32.357597
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13808512687683105 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f970800f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:19:03.239067
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.18151593208312988 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7baab0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:19:32.430484
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1361086368560791 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7d10f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:20:02.988983
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.20087027549743652 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8864c0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:20:32.536705
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1351008415222168 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa230b080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:21:03.208153
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.19717955589294434 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f830b10f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:21:32.651979
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13759183883666992 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f864270f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:22:03.345957
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.17661738395690918 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11370f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:22:32.741167
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13277339935302734 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f837e40f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:23:02.197295
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.15928959846496582 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cc80f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:23:31.859837
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13828706741333008 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bc3080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:24:02.698712
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.22262930870056152 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81eae0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:24:31.946202
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13595843315124512 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79fe6080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:25:02.557187
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13988351821899414 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa6c70f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:25:32.047636
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13704156875610352 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f796bf080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:26:02.761939
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14905142784118652 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f925620f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:26:32.167549
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13082623481750488 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb26ce0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:27:02.873197
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14255547523498535 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f921510f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:27:32.262944
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13535857200622559 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de430f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:28:03.049155
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1414797306060791 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa6950f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:28:32.365479
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1363832950592041 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81c35080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:29:03.318711
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.19606685638427734 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fbd10f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:29:32.483311
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13640928268432617 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b940f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:30:03.161012
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14589929580688477 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f938ff0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:30:32.564378
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.135986328125 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa23f10f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:31:03.201995
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14203405380249023 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8f450f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:31:32.747097
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13483238220214844 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5efd0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:32:02.382280
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.16215014457702637 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f811360f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:32:31.863969
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13690972328186035 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f771df0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:33:02.607578
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14197754859924316 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeaff0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:33:31.946845
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13635516166687012 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f971ec0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:34:02.783595
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1458728313446045 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d98080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:34:32.020962
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13446569442749023 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99faa080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:35:02.738882
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.17765021324157715 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5f70f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:35:32.123987
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13747835159301758 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11910f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:36:02.800028
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1451725959777832 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad22a080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:36:32.211255
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1341102123260498 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f986310f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:37:02.664848
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14715814590454102 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f06f0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:37:32.304108
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13547992706298828 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f815960f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:38:02.979107
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.17727947235107422 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85f1d0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:38:32.405862
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13610267639160156 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb38a60f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:39:03.217897
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.16275811195373535 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f929370f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:39:32.516417
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13566231727600098 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab370f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:40:03.253677
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1464223861694336 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a3d080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:40:32.645248
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1386411190032959 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d4a10f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:41:03.446046
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.140960693359375 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a000f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:41:32.724851
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1355438232421875 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1a360f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:42:02.385613
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.17679738998413086 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ca70f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:42:31.836167
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13425946235656738 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb51c40f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:43:02.474146
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1411728858947754 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eae90f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:43:31.940298
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14062809944152832 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa948b080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:44:02.890232
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1785268783569336 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f973ff0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:44:32.047022
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13634681701660156 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa94a80f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:45:02.717417
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.25823044776916504 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa000f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:45:32.155279
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14060163497924805 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f580f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:46:02.868025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1477820873260498 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f952e20f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:46:32.240309
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13905715942382812 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db910f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:47:02.918322
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.22588038444519043 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb12ac0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:47:32.352203
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13808035850524902 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c6880f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:48:03.040719
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1455531120300293 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83c6b080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:48:32.437348
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1351761817932129 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d8590f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:49:03.252614
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.20700335502624512 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0ce80f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:49:32.525571
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13689255714416504 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c9b50f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:50:03.174518
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1780838966369629 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f905610f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:50:32.622181
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13649296760559082 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabab30f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:51:03.335291
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14499282836914062 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8152f0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:51:32.726316
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13744521141052246 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f420f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:52:02.363478
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14025068283081055 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43e30f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:52:31.788651
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13502883911132812 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade560f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:53:02.397312
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.18145751953125 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f910de0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:53:31.885871
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13538813591003418 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb07810f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:54:02.780508
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.18411946296691895 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d7cf0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:54:31.982971
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13672757148742676 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ca30f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:55:02.722057
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14730310440063477 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb31f50f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:55:32.086863
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13616204261779785 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa44ae0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:56:02.860491
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.18242478370666504 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8580d0f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:56:32.194075
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.138533353805542 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77675080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:57:02.848186
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14901423454284668 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa98930f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:57:32.281118
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.1350548267364502 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f7450f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:58:02.791312
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.13422036170959473 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7690f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:58:32.404596
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20926621
  datou_current_id : 2623790
in upload_from_sqlite, uploading in 20926621
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250209 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250210 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250211 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250212 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250213 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250214 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250215 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250216 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250217 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250218 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250219 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250220 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250221 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250222 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250223 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250224 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250225 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', 2), ('/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', 2), ('/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', 2), ('/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', 2), ('/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', 2), ('/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg', '/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg', '/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg', '/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg', '/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg', '/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0
/home/nano/Desktop/images/28022025/23/52/image_28022025_23_52_43_30283.jpg
/home/nano/Desktop/images/28022025/23/18/image_28022025_23_19_13_29287.jpg
/home/nano/Desktop/images/28022025/22/12/image_28022025_22_12_43_29280.jpg
/home/nano/Desktop/images/28022025/21/38/image_28022025_21_39_13_29288.jpg
/home/nano/Desktop/images/28022025/20/32/image_28022025_20_32_43_29281.jpg
/home/nano/Desktop/images/28022025/19/58/image_28022025_19_59_12_29286.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.14032864570617676 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2623790&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87067080>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:59:03.162437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96eb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96eb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 00:59:32.488857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef52e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef52e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:00:03.227268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe00e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe00e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:00:32.600658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97899ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97899ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:01:03.161311
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3486ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3486ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:01:32.684471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf71cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf71cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:02:02.344419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ae82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ae82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:02:31.788952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c443ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c443ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:03:02.452233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf771ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf771ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:03:31.932520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:04:02.958939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95a4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95a4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:04:32.048321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cba6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cba6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:05:02.834644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f872f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f872f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:05:32.123785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94530e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94530e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:06:02.794927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:06:32.215316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac91cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac91cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:07:02.972051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f805f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f805f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:07:32.305607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaab2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaab2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:08:03.027193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86db7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86db7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:08:32.438773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f817efe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f817efe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:09:03.351339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85699ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85699ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:09:32.588900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92026ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92026ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:10:03.068511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2944ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2944ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:10:32.691023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2927ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2927ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:11:02.270063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e9ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e9ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:11:31.794136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:12:02.470792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2fcae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2fcae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:12:31.914742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb33d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb33d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:13:02.620239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb524cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb524cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:13:31.998634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f811d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f811d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:14:03.003239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabb15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabb15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:14:32.118953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f27e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f27e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:15:02.759703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5444e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5444e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:15:32.231412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aea8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aea8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:16:02.888564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93316e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93316e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:16:32.331583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:17:03.128877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f974b0e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f974b0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:17:32.423451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0168e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0168e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:18:03.164934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f866b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f866b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:18:32.524069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab82cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab82cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:19:03.279746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa44dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa44dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:19:32.620820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e1cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e1cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:20:03.360020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95a69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95a69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:20:32.715497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87de6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87de6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:21:02.412427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0792ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0792ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:21:31.823685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bad4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bad4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:22:02.534341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:22:31.922724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4024e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4024e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:23:02.591385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b98fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b98fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:23:32.039720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f951fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f951fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:24:02.832842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facec6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facec6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:24:32.148755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f983e7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f983e7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:25:02.882433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2dffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2dffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:25:32.268254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f957e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f957e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:26:02.943109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9c7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9c7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:26:32.368325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0563ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0563ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:27:02.961632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c9e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c9e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:27:32.471521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faad08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:28:03.018992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78789e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78789e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:28:32.547777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94af1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94af1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:29:03.324670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae394e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae394e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:29:32.651939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f466ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f466ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:30:03.392711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fa4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fa4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:30:32.719469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99445ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99445ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:31:02.372377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84361e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84361e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:31:31.820467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb41f8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb41f8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:32:02.506799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa71d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa71d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:32:31.917222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85362ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85362ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:33:02.336210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ecee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ecee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:33:32.040615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f957beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f957beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:34:02.759661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8fd2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8fd2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:34:32.115285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:35:02.598039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7adf9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7adf9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:35:32.220392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac837ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac837ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:36:02.994477
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f902f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:36:32.293152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d24eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d24eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:37:03.090141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e240ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e240ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:37:32.373041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ee02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ee02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:38:03.163705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91e35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91e35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:38:32.483581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f881b2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f881b2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:39:03.337880
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9115ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9115ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:39:32.599853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c60ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c60ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:40:03.244220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e6fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e6fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:40:32.703105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6afdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6afdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:41:02.347377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaea4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaea4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:41:31.813930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad325ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad325ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:42:02.508158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f809bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f809bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:42:31.894484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d202e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d202e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:43:02.705811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77d71e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77d71e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:43:32.057283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76653ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76653ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:44:02.835757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8763fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8763fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:44:32.206060
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:45:02.760912
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90830e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90830e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:45:32.318939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85004ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85004ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:46:02.977474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88a48ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88a48ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:46:32.424481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:47:02.913921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:47:32.564755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb14f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb14f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:48:03.260162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d757ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d757ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:48:32.676874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8de90e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8de90e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:49:02.573284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fccef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:49:31.779409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92eefef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92eefef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:50:02.452491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78c2def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78c2def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:50:31.880203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5e5ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5e5ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:51:02.542845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:51:31.993108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:52:02.707011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87170ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87170ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:52:32.081337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e245ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e245ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:53:02.695077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82a27e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82a27e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:53:32.193763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f969b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f969b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:54:03.005492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95d84ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95d84ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:54:32.278546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:55:02.837234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0318ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0318ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:55:32.373709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:56:03.016279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d0f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d0f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:56:32.478712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:57:03.139077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa724aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa724aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:57:32.589020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:58:03.223403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb324ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb324ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:59:02.976725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93aafef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93aafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 01:59:32.327209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:00:03.069300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:00:32.423338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4237ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4237ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:01:03.039484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faef4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:01:32.512760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f968d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f968d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:02:03.113617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:02:32.608568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9460ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9460ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:03:03.361558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc19e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc19e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:03:32.722792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94283ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94283ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:04:02.699077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cfceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cfceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:04:31.817262
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78bd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78bd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:05:02.361511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5af5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5af5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:05:31.924499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab2cae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab2cae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:06:02.495659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95454ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95454ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:06:31.996745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d16def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d16def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:07:02.561700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad0faef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad0faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:07:32.102293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:08:02.707020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f817cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f817cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:08:32.194897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa71b5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa71b5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:09:03.093482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f981f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f981f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:09:32.371047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4849e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4849e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:10:03.110047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:10:32.444675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bf5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bf5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:11:03.012045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89e1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89e1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:11:32.551164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad36aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad36aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:12:03.312576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83c79e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83c79e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:12:32.656206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f7afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f7afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:13:02.358351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faeec7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeec7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:13:31.761728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:14:02.617585
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1a18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1a18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:14:31.842846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c79ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c79ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:15:02.507658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9495cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9495cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:15:31.968670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:16:02.671889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fa6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fa6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:16:32.073422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92472ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92472ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:17:02.620386
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb109bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb109bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:17:32.159200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96b16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96b16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:18:02.957535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81dffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81dffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:18:32.257424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faef22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:19:03.280217
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac196e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac196e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:19:32.401875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e0f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e0f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:20:03.100859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab23ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab23ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:20:32.501776
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:21:03.251919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a675ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a675ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:21:32.606532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f81def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f81def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:22:03.330687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:22:32.714204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:23:02.380536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d240ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d240ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:23:31.795245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa971ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa971ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:24:02.704295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b919ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b919ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:24:31.904070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bdd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bdd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:25:02.551030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a613ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a613ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:25:32.005536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad136ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad136ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:26:02.594221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bc9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bc9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:26:32.099104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98738ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98738ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:27:02.833167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa241aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa241aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:27:32.207289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f16def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f16def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:28:02.839947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9430aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9430aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:28:32.311695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4503e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4503e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:29:03.255013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ff8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ff8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:29:32.403731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb44abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb44abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:30:03.084907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d310e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d310e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:30:32.544126
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5962ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5962ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:31:03.264474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae95ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae95ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:31:32.631314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f8c4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f8c4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:32:03.338597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3eb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3eb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:32:32.740659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b11ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b11ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:33:02.458285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f951cfe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f951cfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:33:31.840844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a665ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a665ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:34:02.839652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79e65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79e65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:34:31.948960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77db6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77db6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:35:02.544052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:35:32.042279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82812ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82812ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:36:02.803327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a060ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a060ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:36:32.148364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa245aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa245aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:37:02.800639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f58ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f58ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:37:32.260796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa64cae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa64cae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:38:03.096412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2325ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2325ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:38:32.366130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3183e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3183e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:39:03.257543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9be7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9be7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:39:32.473112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9933aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9933aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:40:03.037262
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:40:32.560550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4bb6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4bb6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:41:03.240947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86e81e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86e81e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:41:32.663733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:42:02.140213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa792aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa792aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:42:31.761442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9743fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9743fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:43:02.381720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aff9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aff9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:43:31.842939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaeb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaeb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:44:02.714492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b7a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b7a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:44:31.993958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:45:02.735971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97a47e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97a47e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:45:32.111897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9af38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9af38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:46:02.728149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b165ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b165ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:46:32.210779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f998b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f998b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:47:02.941112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e4dae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e4dae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:47:32.298331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ed3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ed3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:48:02.951465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:48:32.405480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cadfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cadfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:49:03.155826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80863e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80863e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:49:32.501427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b735ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b735ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:50:03.253444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb9def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:50:32.600374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79475ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79475ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:51:03.202280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f879d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f879d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:51:32.705608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eff1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eff1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:52:02.356655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93498e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93498e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:52:31.802948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f799e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f799e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:53:02.411683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f841d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f841d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:53:31.896775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d0b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d0b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:54:02.958255
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:54:32.007457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f884d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f884d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:55:02.647557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e5afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e5afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:55:32.117050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d6c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d6c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:56:02.721856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82b91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82b91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:56:32.212096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1595e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1595e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:57:02.879143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4020ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4020ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:57:32.327135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ecfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ecfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:58:03.058134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1dfe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1dfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:59:02.827169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f955adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f955adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 02:59:31.994241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8422ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8422ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:00:02.816122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb082eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb082eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:00:32.106666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bfc7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bfc7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:01:02.546982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82177ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82177ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:01:32.215887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f913c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f913c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:02:02.690526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2069ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2069ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:02:32.318067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4de2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4de2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:03:02.998405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d491e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d491e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:03:32.411907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faad0de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad0de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:04:03.164097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f987b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f987b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:04:32.510287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb078def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb078def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:05:03.213783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:05:32.606405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:06:03.340251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb406aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb406aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:06:32.744779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91eb6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91eb6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:07:02.457306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76df0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76df0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:07:31.842141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88916e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88916e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:08:02.561833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4862ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4862ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:08:31.933220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78006ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78006ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:09:02.717532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:09:32.035282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7eafef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7eafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:10:02.702032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4b1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4b1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:10:32.136725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f66ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f66ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:11:02.794243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e9def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:11:32.252056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:12:02.899491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:12:32.346210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa181fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa181fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:13:02.990937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f802b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f802b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:13:32.437011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82da4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82da4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:14:03.253244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fe5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fe5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:14:32.544796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99cb3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99cb3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:15:03.145220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d094ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d094ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:15:32.687697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa53d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa53d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:16:02.505167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1144ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1144ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:16:31.784116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf60bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf60bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:17:02.448297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:17:31.893647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f782afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f782afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:18:02.512941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faea0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:18:32.001295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8347aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8347aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:19:02.914709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f792bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f792bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:19:32.077329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:20:02.646904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f976ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f976ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:20:32.195216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ec9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ec9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:21:02.776024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76cf4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76cf4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:21:32.285325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78631ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78631ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:22:02.935254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80eace80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80eace80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:22:32.441303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bf37ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bf37ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:23:03.146526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ff2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ff2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:23:32.531639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:24:03.419531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f814b9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f814b9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:24:32.640014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d3a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d3a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:25:03.345876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cce6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cce6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:25:32.758459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb258aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb258aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:26:02.452171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb422def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb422def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:26:31.884617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa71fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa71fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:27:02.536109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:27:31.965188
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e9cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e9cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:28:02.687287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bab7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bab7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:28:32.071221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96133ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96133ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:29:03.014014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf2cce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf2cce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:29:32.142480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f778daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:30:02.781268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86e69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86e69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:30:32.265700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faac19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faac19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:31:02.972517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ff8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ff8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:31:32.366688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4266ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4266ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:32:02.998378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0351ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0351ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:32:32.471847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c11def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c11def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:33:03.145318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f861c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f861c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:33:32.566699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f931c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:34:03.493321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85e96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85e96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:34:32.670399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:35:02.302217
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d3a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d3a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:35:31.792331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:36:02.347326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ff0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ff0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:36:31.859960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9698be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9698be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:37:02.606057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa81f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa81f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:37:31.955040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:38:02.591704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:38:32.054162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9efaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9efaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:39:03.059660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa463bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa463bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:39:32.241592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85467ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85467ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:40:02.805607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c974e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c974e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:40:32.324515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a374ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a374ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:41:03.097451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f899c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f899c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:41:32.438969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96beeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96beeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:42:03.081367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f813baef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f813baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:42:32.562969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76628ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76628ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:43:03.202579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81755ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81755ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:43:32.670848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa56def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa56def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:44:02.638794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f959d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f959d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:44:31.762993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa75ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa75ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:45:02.486127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83756e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83756e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:45:31.865267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97024ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97024ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:46:02.517772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d3def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d3def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:46:31.965786
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ea2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ea2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:47:02.625603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:47:32.031986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:48:02.761224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84516e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84516e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:48:32.141082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f832dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f832dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:49:02.961596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19edef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:49:32.286567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa37ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa37ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:50:02.868723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94fb9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94fb9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:50:32.431347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76686ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76686ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:51:02.996532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e84cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e84cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:51:32.574461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:52:03.084153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85490ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85490ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:52:32.662796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa820aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa820aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:53:02.454594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:53:31.786421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:54:02.718590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f1f3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f1f3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:54:31.870825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87feeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87feeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:55:02.430655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:55:31.979331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0841ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0841ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:56:02.640307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f884a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f884a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:56:32.127302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:57:02.780664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b0d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b0d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:57:32.216765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79751ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79751ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:58:02.577276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80151ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80151ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:59:03.451060
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d12ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d12ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 03:59:32.737596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b19aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b19aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:00:02.426430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f889d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f889d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:00:31.812156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a36eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a36eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:01:02.288232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:01:31.902429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:02:02.439479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a07e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a07e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:02:32.010608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0c9fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0c9fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:03:02.703782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f766d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f766d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:03:32.089065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c0f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c0f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:04:03.075686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4051ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4051ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:04:32.219283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e8aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e8aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:05:02.872360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f988c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f988c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:05:32.303491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd8def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd8def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:06:02.942848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:06:32.504205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e886ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e886ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:07:03.235561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e3eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e3eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:07:32.588139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4304e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4304e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:08:03.326086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d20e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d20e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:08:32.694454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a10ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a10ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:09:02.738430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:09:31.781095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1af2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1af2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:10:02.311418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:10:31.873623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faec6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faec6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:11:02.556444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d415ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d415ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:11:31.968833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4ce0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4ce0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:12:02.683840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:12:32.085214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d16fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d16fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:13:02.778221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f875fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f875fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:13:32.200206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f838e3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f838e3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:14:03.097232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa90ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa90ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:14:32.317169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:15:02.990203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b0b6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b0b6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:15:32.415334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:16:03.116461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:16:32.517168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:17:03.201466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb051fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb051fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:17:32.622272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9feb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9feb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:18:03.282373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8efef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8efef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:18:32.731340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c47eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c47eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:19:02.597855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:19:31.837302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f862c1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f862c1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:20:02.508300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:20:31.941094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a056ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a056ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a056ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:21:02.544072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f791a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f791a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f791a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:21:32.038918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3152ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3152ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3152ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:22:02.687931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1807ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1807ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1807ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:22:32.161714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85335e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85335e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85335e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:23:02.804648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94bc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94bc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94bc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:23:32.253488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:24:03.160635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8df54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8df54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8df54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:24:32.309909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7caa9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7caa9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7caa9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:25:03.048015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2e16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2e16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2e16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:25:32.449625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:26:03.085053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f994e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f994e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f994e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:26:32.550225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e1b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e1b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e1b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:27:03.182929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8620cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8620cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8620cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:27:32.644547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97d56e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97d56e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97d56e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:28:03.357665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa85dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa85dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa85dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:28:32.756452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f91eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f91eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f91eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:29:02.723847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f840dae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f840dae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f840dae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:29:31.846683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f955daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f955daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f955daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:30:02.483799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82610ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82610ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82610ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:30:31.945047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92731ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92731ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92731ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:31:02.666293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fb8aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fb8aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fb8aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:31:32.088827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d665ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d665ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d665ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:32:02.657869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7c93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7c93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7c93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:32:32.195533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d400ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d400ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d400ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:33:02.898350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:33:32.310059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:34:03.026100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:34:32.403307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e967ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e967ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e967ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:35:03.114321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:35:32.506975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fcc2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fcc2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fcc2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:36:03.145245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:36:32.611952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:37:03.212454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:37:32.733833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab26aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab26aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab26aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:38:02.358563
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:38:31.847096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fd99ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fd99ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fd99ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:39:02.740380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:39:31.950007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98679ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98679ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98679ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:40:02.590837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:40:32.035798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d146ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d146ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d146ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:41:02.771813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa934aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa934aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa934aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:41:32.139611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ba19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ba19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ba19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:42:02.754663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ac2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ac2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ac2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:42:32.258941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b58bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b58bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b58bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:43:02.804877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:43:32.336012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88809ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88809ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88809ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:44:03.341109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a45de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a45de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a45de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:44:32.438370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:45:03.104535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:45:32.528344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0563e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0563e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0563e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:46:03.270340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:46:32.625910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:47:03.267619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b269e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b269e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b269e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:47:32.711901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:48:02.401484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80b41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80b41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80b41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:48:31.820455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d6fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d6fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d6fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:49:02.689085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a14e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a14e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a14e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:49:31.939966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:50:02.605790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4602ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4602ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4602ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:50:32.019335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92abfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92abfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92abfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:51:02.744366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b418ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b418ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b418ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:51:32.136741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:52:02.864216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a190ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a190ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a190ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:52:32.220882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faddbeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faddbeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faddbeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:53:02.890282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91e1def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91e1def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91e1def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:53:32.320559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87278ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87278ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87278ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:54:03.201329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7815cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7815cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7815cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:54:32.431834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e19bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e19bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e19bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:55:03.025415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa55f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa55f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa55f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:55:32.539523
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadfbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadfbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadfbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:56:03.149249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4f4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4f4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e4f4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:56:32.650258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97bf1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97bf1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97bf1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:57:02.285829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:57:31.870229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82364ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82364ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82364ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:58:02.620015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa119cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa119cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa119cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:59:03.263820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa612eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa612eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa612eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 04:59:32.552990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b623ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b623ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b623ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:00:03.232525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f867e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f867e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f867e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:00:32.662957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84249ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84249ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84249ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:01:02.250927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:01:31.761621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89eadef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89eadef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89eadef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:02:02.461847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f9b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f9b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f9b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:02:31.883593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa276ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa276ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa276ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:03:02.631475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8077ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8077ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8077ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:03:31.978001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5fc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5fc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5fc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:04:02.828660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb602eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb602eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb602eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:04:32.069205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7735ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7735ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7735ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:05:02.741934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85056ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85056ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85056ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:05:32.155568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:06:02.807754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:06:32.267607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb49e4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb49e4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb49e4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:07:02.887122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a767ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a767ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a767ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:07:32.343820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c559e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c559e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c559e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:08:03.020123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ec1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ec1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ec1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:08:32.467511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5dde80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5dde80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5dde80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:09:03.402604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf5ccef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf5ccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf5ccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:09:32.599336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6dcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6dcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6dcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:10:03.128205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf7d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf7d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf7d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:10:32.689704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7740eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7740eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7740eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:11:02.446240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a77fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a77fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a77fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:11:31.799616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8460def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8460def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8460def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:12:02.494586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa59edef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa59edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa59edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:12:31.873831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7891fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7891fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7891fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:13:02.558574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:13:31.969945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8884eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8884eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8884eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:14:02.924647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:14:32.089632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8503aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8503aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8503aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:15:02.714606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82278ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82278ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82278ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:15:32.188807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e81def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e81def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e81def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:16:02.937079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa02c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa02c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa02c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:16:32.317814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9282e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9282e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9282e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:17:03.037169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:17:32.387972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b44aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b44aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b44aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:18:03.107761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a0f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a0f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a0f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:18:32.500229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3eb3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3eb3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3eb3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:19:03.523848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0f6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0f6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0f6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:19:32.574470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f059ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f059ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f059ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:20:03.192223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e0ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e0ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e0ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:20:32.675291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa77d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa77d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa77d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:21:02.441071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:21:31.762841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad43ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad43ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad43ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:22:02.537458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fc95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fc95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fc95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:22:31.887871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e27ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e27ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e27ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:23:02.575723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:23:32.046034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82fbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82fbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82fbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:24:02.808023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0b73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0b73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0b73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:24:32.145074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f980d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:25:02.848111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab725ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab725ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab725ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:25:32.269574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:26:02.941198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f822ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f822ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f822ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:26:32.409032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ea13ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ea13ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ea13ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:27:03.027941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d72eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d72eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d72eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:27:32.493408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:28:02.983006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81f80ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81f80ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81f80ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:28:32.603414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f954b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:29:03.334189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:29:32.715846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1461e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1461e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1461e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:30:02.376123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86c7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86c7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86c7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:30:31.826470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8769cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8769cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8769cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:31:02.522144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a07def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a07def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a07def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:31:31.933930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90847ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90847ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90847ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:32:02.604664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7917eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7917eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7917eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:32:32.036494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:33:02.654545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3fe2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3fe2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3fe2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:33:32.159456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7baa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7baa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7baa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:34:03.070625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b342ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b342ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b342ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:34:32.220650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82a59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82a59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82a59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:35:02.978281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e8b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e8b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e8b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:35:32.321469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab54bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab54bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab54bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:36:03.001766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f839cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:36:32.426649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83d9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83d9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83d9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:37:03.018678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5935ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5935ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5935ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:37:32.526622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:38:03.262908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91616ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91616ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91616ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:38:32.652986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7d90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7d90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7d90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:39:03.501255
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b5caef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b5caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b5caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:39:32.744653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf725ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf725ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf725ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:40:02.178799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97158ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97158ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97158ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:40:31.841778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3161ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3161ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3161ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:41:02.440510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3682ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3682ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3682ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:41:31.948056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80210e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80210e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80210e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:42:02.516240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ff18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ff18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ff18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:42:32.043026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9df95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9df95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9df95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:43:02.554925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b2dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b2dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b2dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:43:32.132360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98baeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98baeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98baeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:44:02.939396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95975ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95975ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95975ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:44:32.258610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa111cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa111cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa111cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:45:02.980401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:45:32.337796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f1fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f1fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f1fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:46:03.036322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa446ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa446ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa446ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:46:32.431616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8532def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8532def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8532def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:47:03.046961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ce76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ce76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ce76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:47:32.522303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa30a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa30a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa30a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:48:03.047455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e255e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e255e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e255e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:48:32.618971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:49:03.527701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f491ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f491ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f491ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:49:32.696514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf8fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf8fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf8fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:50:02.405885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82e09ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82e09ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82e09ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:50:31.824795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec2fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec2fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec2fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:51:02.456867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8113ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8113ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8113ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:51:31.911866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77340ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77340ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77340ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:52:02.686759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80067ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80067ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80067ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:52:32.027647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ad2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ad2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ad2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:53:02.687833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9592def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9592def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9592def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:53:32.119097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:54:03.003574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cee3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cee3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cee3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:54:32.219133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8daf8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8daf8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8daf8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:55:02.874635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8247eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8247eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8247eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:55:32.384955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:56:03.113030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:56:32.509812
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b753ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b753ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b753ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:57:03.289220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:57:32.645042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e136ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e136ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e136ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:58:03.283427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/00/58/image_01032025_00_59_13_30283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d7a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d7a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d7a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:59:03.181884
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79767ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79767ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79767ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 05:59:32.307086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:00:02.979447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1cb2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1cb2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1cb2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:00:32.406928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:01:03.073782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:01:32.522595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ec0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ec0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ec0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:02:03.194001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c401e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c401e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c401e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:02:32.631530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f933edef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f933edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f933edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:03:03.336324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8da0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8da0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8da0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:03:32.731531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac109ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac109ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac109ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:04:02.687627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:04:31.846566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99374ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99374ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99374ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:05:02.523525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:05:31.950355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa61f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa61f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa61f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:06:02.487967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb13daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb13daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb13daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:06:32.033318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f946b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f946b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f946b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:07:02.543620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94e2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94e2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94e2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:07:32.124318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9552fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9552fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9552fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:08:02.871077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e7e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e7e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e7e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:08:32.315401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae50ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae50ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae50ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:09:03.366913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f957c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f957c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f957c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:09:32.510332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f806dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f806dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f806dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:10:02.898034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:10:32.534370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ede7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ede7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ede7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:11:03.381577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ee9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ee9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ee9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:11:32.645694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbe4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbe4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbe4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:12:03.358715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f839c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:12:32.748410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3cf2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3cf2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3cf2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:13:02.685045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:13:31.856790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f998f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f998f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f998f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:14:02.774542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e597ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e597ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e597ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:14:31.951425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:15:02.662745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faab14ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faab14ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faab14ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:15:32.060700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4e20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4e20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4e20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:16:02.567516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94e76e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94e76e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94e76e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:16:32.142778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79c90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79c90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79c90ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:17:02.842854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafe7ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafe7ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafe7ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:17:32.239984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d9c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d9c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d9c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:18:02.900192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:18:32.340537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ab6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ab6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ab6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:19:03.210971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bdb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bdb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bdb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:19:32.444081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:20:03.084965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92176ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92176ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92176ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:20:32.617661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:21:03.448762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:21:32.710269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77824ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77824ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77824ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:22:02.371560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f978f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f978f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f978f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:22:31.862213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6305ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6305ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6305ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:23:02.489791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa8a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa8a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa8a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:23:31.928028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:24:02.928962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:24:32.000722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa818bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa818bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa818bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:25:02.662819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf1b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf1b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf1b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:25:32.092103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:26:02.719876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c9caef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c9caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c9caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:26:32.198627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac45def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac45def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac45def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:27:02.878327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ed9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ed9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ed9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:27:32.313791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f481ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f481ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f481ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:28:03.017208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ebdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ebdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ebdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:28:32.394494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80d2ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80d2ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80d2ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:29:03.621736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4b35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4b35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4b35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:29:32.479625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9483be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9483be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9483be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:30:03.423764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1f40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1f40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1f40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:30:32.589147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e210ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e210ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e210ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:31:03.437905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36b3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36b3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36b3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:31:32.685372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/01/32/image_01032025_01_32_43_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9b8cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9b8cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9b8cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:32:02.621348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9879eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9879eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9879eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:32:31.805767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa86a3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa86a3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa86a3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:33:02.632790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d86e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d86e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d86e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:33:31.972411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f783b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f783b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f783b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:34:03.042767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95500ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95500ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95500ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:34:32.068638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:35:02.882637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec71ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec71ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec71ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:35:32.155204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f842ebe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f842ebe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f842ebe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:36:03.091872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97677ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97677ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97677ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:36:32.253028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e963ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e963ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e963ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:37:03.244950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2d4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2d4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2d4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:37:32.371107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab982e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab982e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab982e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:38:03.153870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dcdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dcdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dcdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:38:32.456893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5efbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5efbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5efbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:39:03.624253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f965abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f965abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f965abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:39:32.576650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad45def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad45def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad45def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:40:03.392338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83d75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83d75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83d75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:40:32.658369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79230e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79230e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79230e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:41:03.358972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa383fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa383fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa383fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:41:32.765676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86af3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86af3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86af3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:42:02.720803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa868cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa868cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa868cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:42:31.881751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9491def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9491def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9491def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:43:02.793723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8532fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8532fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8532fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:43:31.974010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa953def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa953def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa953def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:44:03.091614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:44:32.071915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9afa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9afa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9afa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:45:03.026525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d30be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d30be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d30be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:45:32.171275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78773ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78773ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78773ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:46:02.903112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:46:32.355893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:47:03.152768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:47:32.447155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ba74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ba74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ba74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:48:03.320891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb398ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb398ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb398ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:48:32.538146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:49:03.677439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98830ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98830ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98830ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:49:32.624211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90533ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90533ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90533ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:50:03.639824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:50:32.747328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8049cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8049cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8049cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:51:02.619773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a89e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a89e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a89e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:51:31.900320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:52:02.825441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89effef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89effef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89effef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:52:32.051406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4be8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4be8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4be8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:53:02.769713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d87e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d87e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d87e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:53:32.160835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b535ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b535ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b535ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:54:03.378554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:54:32.266922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cd9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cd9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cd9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:55:03.186774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5998ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:55:32.355471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f765a1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f765a1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f765a1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:56:03.188094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c2a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c2a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c2a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:56:32.487842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7900fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7900fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7900fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:57:03.307350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad531ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad531ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad531ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:57:32.589960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7abb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7abb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7abb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:59:03.089578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 06:59:32.171158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f612ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f612ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f612ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:00:03.114406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f868f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f868f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f868f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:00:32.264421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:01:03.152652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f783e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f783e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f783e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:01:32.382359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aabbe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aabbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aabbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:02:03.215258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d04ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d04ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d04ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:02:32.456740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f442e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f442e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f442e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:03:03.365762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c97fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c97fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c97fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:03:32.556183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa07dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa07dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa07dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:04:03.854849
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b670ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b670ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b670ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:04:32.673858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f826f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f826f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f826f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:05:02.603443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0277ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0277ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0277ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:05:31.784092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9421ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9421ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9421ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:06:02.661329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:06:31.889902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f972abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f972abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f972abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:07:02.541443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7843fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7843fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7843fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:07:31.984938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:08:02.965183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9da7aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9da7aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9da7aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:08:32.068186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:09:03.182264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:09:32.191604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99660ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99660ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99660ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:10:03.038761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:10:32.265502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99f69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99f69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99f69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:11:02.956451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e6f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e6f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e6f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:11:32.375117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91888ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91888ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91888ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:12:03.348602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a633e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a633e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a633e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:12:32.499156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a261ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a261ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a261ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:13:03.445040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c70fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c70fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c70fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:13:32.576909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98458ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98458ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98458ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:14:03.623261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c42ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c42ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c42ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:14:32.687921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85771ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85771ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85771ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:15:02.486638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9239ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9239ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9239ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:15:31.786548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab711ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab711ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab711ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:16:02.651398
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb12b4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb12b4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb12b4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:16:31.898121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2929e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2929e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2929e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:17:02.664327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:17:32.005616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b1deef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b1deef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b1deef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:18:02.891176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:18:32.089952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9003e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9003e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9003e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:19:03.146481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faab00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faab00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faab00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:19:32.295542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa309aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa309aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa309aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:20:03.056926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f775b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f775b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f775b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:20:32.448219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:21:03.311829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7eb3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7eb3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7eb3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:21:32.566924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e2def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e2def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e2def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:22:03.387674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7760def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7760def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7760def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:22:32.664470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bc5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bc5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bc5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:23:02.511743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6eeeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6eeeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6eeeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:23:31.771747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e07cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e07cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e07cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:24:03.016264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0759e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0759e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0759e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:24:31.916289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d27cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d27cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d27cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:25:02.629155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabab3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabab3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabab3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:25:32.016103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:26:02.998257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93e16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93e16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93e16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:26:32.126602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e6de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e6de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e6de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:27:03.054565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa11eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:27:32.227833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e8c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e8c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e8c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:28:02.984168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:28:32.346311
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:29:03.380865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3625ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3625ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3625ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:29:32.446806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86430ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86430ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86430ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:30:03.370676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb551aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb551aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb551aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:30:32.525145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d2b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d2b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d2b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:31:03.287576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:31:32.617088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cab0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:32:03.439765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87054ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87054ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87054ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:32:32.716503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96001ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96001ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96001ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:33:02.471245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:33:31.803665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f985f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f985f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f985f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:34:02.809960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7991fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7991fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7991fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:34:31.900661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f871bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f871bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f871bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:35:02.767359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb61dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb61dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb61dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:35:32.015268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa26b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa26b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa26b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:36:02.719862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9991fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9991fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9991fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:36:32.109908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:37:03.101663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eeb5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eeb5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eeb5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:37:32.219299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafa29e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafa29e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafa29e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:38:02.980629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85031ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85031ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85031ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:38:32.402459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:39:03.429930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/02/38/image_01032025_02_39_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:39:32.476991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84559ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84559ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84559ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:40:03.301992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8abc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8abc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8abc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:40:32.577584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88d0eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88d0eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88d0eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:41:03.497232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad3c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad3c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad3c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:41:32.679037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:42:02.526001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:42:31.763211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8142eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8142eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8142eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:43:02.407193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:43:31.889087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:44:03.163651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d161ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d161ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d161ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:44:31.986205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a311ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a311ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a311ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:45:02.919641
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b2fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b2fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b2fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:45:32.084594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:46:03.014911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7350ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7350ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7350ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:46:32.224813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:47:03.213986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95736e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95736e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95736e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:47:32.313902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:48:03.099606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb097def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb097def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb097def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:48:32.430755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3286ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3286ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3286ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:49:03.542248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:49:32.522038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e4c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e4c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e4c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:50:03.511216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a305ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a305ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a305ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:50:32.627257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:51:03.562033
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f797d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f797d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f797d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:51:32.738582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f806fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f806fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f806fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:52:02.523331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f986b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f986b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f986b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:52:31.865849
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97dc8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97dc8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97dc8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:53:02.586699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fa59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fa59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fa59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:53:31.958955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:54:02.904271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bffae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bffae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bffae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:54:32.073193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80cccef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80cccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80cccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:55:02.958130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79699ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79699ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79699ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:55:32.180175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:56:02.868232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f955b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f955b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f955b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:56:32.288157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b589ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b589ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b589ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:57:03.082542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bca1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bca1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bca1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:57:32.417177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab2ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab2ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab2ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:58:03.360289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f991b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f991b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f991b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:59:03.687324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78251ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78251ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78251ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 07:59:32.757373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:00:02.640100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa033bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa033bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa033bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:00:31.851202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:01:02.822032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95070ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95070ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95070ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:01:31.948979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97be4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97be4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97be4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:02:02.873899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ac3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ac3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ac3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:02:32.076633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:03:03.071141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:03:32.172661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f874c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f874c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f874c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:04:03.218530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa659aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa659aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa659aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:04:32.330699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84331ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84331ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84331ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:05:03.224809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae707ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae707ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae707ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:05:32.444061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf158e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf158e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf158e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:06:03.223379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8378fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8378fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8378fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:06:32.541071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ae9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ae9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ae9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:07:03.435026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f92ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f92ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f92ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:07:32.656024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:08:02.593178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93efde80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93efde80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93efde80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:08:31.776739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c420ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c420ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c420ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:09:03.009043
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e380ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e380ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e380ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:09:31.962855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6202ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6202ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6202ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:10:02.786551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:10:32.063318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c1dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c1dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c1dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:11:02.772366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99169ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99169ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99169ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:11:32.168990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90c01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90c01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90c01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:12:03.214752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2), ('/home/nano/Desktop/images/01032025/03/12/image_01032025_03_12_43_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4547ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4547ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4547ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:12:32.264205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f82ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:13:03.231596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90c42ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90c42ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90c42ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:13:32.360819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79370ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79370ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79370ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:14:03.396145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:14:32.458572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:15:03.269373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a904ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a904ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a904ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:15:32.573902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f952bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f952bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f952bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:16:03.448871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f842c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f842c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f842c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:16:32.668100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82fc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82fc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82fc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:17:02.665043
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ebbe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ebbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ebbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:17:31.762220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:18:02.749642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f2c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f2c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f2c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:18:31.872364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fe1ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fe1ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fe1ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:19:03.126390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a552ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a552ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a552ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:19:31.971390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:20:02.764728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:20:32.092876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90cb1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90cb1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90cb1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:21:02.980968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb403fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb403fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb403fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:21:32.265993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f73bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f73bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f73bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:22:03.295134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f938c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f938c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f938c2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:22:32.341509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9deeeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9deeeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9deeeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:23:03.239452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1656e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1656e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1656e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:23:32.445420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f839adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:24:03.774900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f990d8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f990d8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f990d8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:24:32.548602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbfeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbfeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbfeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:25:03.338146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f951adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f951adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f951adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:25:32.648201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89380e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89380e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89380e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:26:03.529298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8258ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8258ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8258ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:26:32.826135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f67ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f67ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f67ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:27:02.678440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dfa8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dfa8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dfa8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:27:31.901898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:28:02.848087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8edcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8edcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8edcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:28:32.018711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fc30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fc30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fc30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:29:02.883569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa275bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa275bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa275bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:29:32.111588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76bc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76bc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76bc1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:30:02.909550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:30:32.223437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bcc9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bcc9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bcc9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:31:03.000954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:31:32.342858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d474ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d474ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d474ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:32:03.229781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0174ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0174ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0174ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:32:32.436219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:33:03.542014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91a02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91a02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91a02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:33:32.527261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ee78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ee78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ee78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:34:03.783228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83fcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83fcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83fcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:34:32.628511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86fc7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86fc7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86fc7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:35:03.588169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:35:32.786102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf770e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf770e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf770e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:36:02.560131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa80fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa80fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa80fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:36:31.880773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e2aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e2aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e2aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:37:02.890164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2b9def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2b9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2b9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:37:31.985922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ea9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ea9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ea9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:38:02.720142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa868def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa868def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa868def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:38:32.061053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99087ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99087ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99087ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:39:03.012870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8010cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8010cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8010cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:39:32.174388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facff7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facff7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facff7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:40:03.142003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:40:32.269168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3529ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3529ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3529ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:41:02.858265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84363ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84363ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84363ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:41:32.372154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a455e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a455e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a455e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:42:03.147995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac62aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac62aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac62aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:42:32.470960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:43:03.458017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:43:32.586297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3efee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3efee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3efee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:44:03.588529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f776adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f776adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f776adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:44:32.690452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79282ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79282ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79282ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:45:02.544264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:45:31.780608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77c6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77c6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77c6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:46:02.547448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b50fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b50fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b50fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:46:31.867101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edbbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edbbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edbbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:47:02.887980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e571ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:47:31.969763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ee07ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ee07ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ee07ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:48:02.914143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d7d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d7d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d7d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:48:32.063535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6570ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6570ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6570ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:49:03.134760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5b0e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5b0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5b0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:49:32.223093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85c0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85c0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85c0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:50:02.837896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa180def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa180def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa180def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:50:32.342707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4369ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4369ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4369ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:51:03.191744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa403def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa403def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa403def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:51:32.456744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d70e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d70e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4d70e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:52:03.415787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c08e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c08e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c08e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:52:32.545988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1425e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1425e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1425e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:53:03.341708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:53:32.651194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d46eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d46eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d46eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:54:02.587478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa78afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa78afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa78afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:54:31.762818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b20e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b20e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b20e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:55:02.741312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a71ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a71ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a71ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:55:31.855453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ed94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:56:02.585811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9274cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9274cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9274cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:56:31.960342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b1a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b1a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b1a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:57:02.925177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82396ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82396ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82396ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:57:32.117679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c46e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c46e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c46e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:59:03.250525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9327aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9327aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9327aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 08:59:31.960309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8649def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8649def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8649def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:00:02.829615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c08ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:00:32.059175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f834c9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f834c9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f834c9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:01:03.079140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b20fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b20fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b20fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:01:32.179201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f873e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f873e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f873e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:02:03.151284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:02:32.274450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:03:03.251434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a92eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a92eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a92eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:03:32.356803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77556ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77556ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77556ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:04:03.515448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae238ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae238ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae238ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:04:32.450124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f902e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:05:03.495685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86bdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86bdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86bdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:05:32.566126
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:06:03.566341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa42c6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa42c6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa42c6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:06:32.645204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b20fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b20fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b20fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:07:03.572640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e3ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e3ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e3ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:07:32.752856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc58ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc58ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc58ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:08:02.743537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:08:31.889891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8022cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8022cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8022cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:09:02.893024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa608eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa608eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa608eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:09:31.981329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5d6be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5d6be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5d6be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:10:02.961602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:10:32.074430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c28def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c28def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c28def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:11:02.713418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa367cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa367cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa367cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:11:32.183349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f945e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f945e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f945e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:12:03.001449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:12:32.289174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa081ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa081ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa081ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:13:03.126534
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b2ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b2ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b2ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:13:32.379254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9df35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9df35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9df35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:14:03.631381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96952ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96952ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96952ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:14:32.478174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f833a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f833a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f833a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:15:03.278611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:15:32.610370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c5b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c5b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c5b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:16:03.634061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84adeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84adeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84adeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:16:32.728081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d515ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d515ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d515ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:17:02.705535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92b8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92b8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92b8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:17:31.823559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e9ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e9ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e9ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:18:02.766507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8722aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8722aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8722aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:18:31.934541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2), ('/home/nano/Desktop/images/01032025/04/18/image_01032025_04_19_13_30296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99bf3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99bf3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99bf3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:19:03.152465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8e86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8e86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8e86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:19:32.062820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:20:02.938364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:20:32.151171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e2b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e2b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e2b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:21:02.968787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa886fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa886fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa886fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:21:32.329150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:22:03.259133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9169eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9169eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9169eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:22:32.435321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2), ('/home/nano/Desktop/images/01032025/04/52/image_01032025_04_52_43_30279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8765fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8765fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8765fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:23:03.409652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f708e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f708e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f708e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:23:32.521221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76991ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76991ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76991ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:24:03.799008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9ae2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9ae2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9ae2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:24:32.642158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb31b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb31b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb31b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:25:03.577908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:25:32.721010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb05ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:26:02.658335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad209ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad209ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad209ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:26:31.821621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf230ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf230ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf230ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:27:02.539290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90501e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90501e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90501e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:27:31.918334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88c73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88c73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88c73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:28:02.968133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:28:32.028062
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0cdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0cdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0cdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:29:03.124957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe0eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe0eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe0eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:29:32.121662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b324ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b324ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b324ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:30:03.086460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f917aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f917aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f917aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:30:32.227175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facd28e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facd28e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facd28e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:31:02.922628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa5fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa5fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa5fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:31:32.335082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb333cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb333cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb333cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:32:03.323215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94683ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94683ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94683ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:32:32.429353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:33:03.358047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:33:32.526712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88865e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88865e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88865e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:34:03.485336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83bdee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83bdee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83bdee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:34:32.628832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa97c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa97c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa97c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:35:03.459674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c4d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c4d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c4d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:35:32.726358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa22caef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa22caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa22caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:36:02.499066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/05/58/image_01032025_05_59_13_30282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84ea8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84ea8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84ea8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:36:31.832578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa982aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa982aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa982aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:37:02.872437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cbe5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cbe5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cbe5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:37:31.931927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82bf0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82bf0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82bf0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:38:02.849361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9363aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9363aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9363aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:38:32.035383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:39:03.130067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5612ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5612ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5612ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:39:32.134738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc78e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc78e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc78e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:40:03.027092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a859e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a859e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a859e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:40:32.221617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c88eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c88eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c88eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:41:02.993660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0da5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0da5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0da5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:41:32.326598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76887ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76887ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76887ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:42:03.278644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:42:32.416768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84910ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84910ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84910ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:43:03.209927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:43:32.501275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80386ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80386ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80386ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:44:03.540241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78801ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78801ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78801ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:44:32.668660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaca4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaca4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaca4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:45:02.518594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:45:31.762675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86df6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86df6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86df6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:46:02.739914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f894c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f894c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f894c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:46:31.842416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76754ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76754ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76754ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:47:02.758380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99393ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99393ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99393ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:47:31.935313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa22e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa22e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa22e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:48:02.823771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f919f9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f919f9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f919f9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:48:32.012504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f59bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f59bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f59bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:49:02.889730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5e92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5e92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5e92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:49:32.136464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb538aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb538aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb538aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:50:03.095885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb41a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb41a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb41a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:50:32.250907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8936aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8936aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8936aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:51:03.060480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9947eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9947eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9947eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:51:32.348248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96440ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96440ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96440ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:52:03.299046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2), ('/home/nano/Desktop/images/01032025/06/32/image_01032025_06_32_43_29282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a61def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a61def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a61def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:52:32.488341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94300ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94300ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94300ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:53:03.586541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f899d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f899d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f899d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:53:32.583277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7da1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7da1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7da1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:54:03.634525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5a43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5a43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5a43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:54:32.669013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f887d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f887d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f887d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:55:02.384484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/08/12/image_01032025_08_12_43_30298.jpg', 2), ('/home/nano/Desktop/images/01032025/07/38/image_01032025_07_39_13_30295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d20def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d20def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d20def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:55:31.757355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/54/image_01032025_09_55_13_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/53/image_01032025_09_54_13_29334.jpg', 2), ('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa150def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa150def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa150def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:56:02.380333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/54/image_01032025_09_55_13_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/53/image_01032025_09_54_13_29334.jpg', 2), ('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2), ('/home/nano/Desktop/images/01032025/09/22/image_01032025_09_22_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/09/18/image_01032025_09_19_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9976be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9976be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9976be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:56:31.866848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_56_13_30331.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_55_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/54/image_01032025_09_55_13_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/53/image_01032025_09_54_13_29334.jpg', 2), ('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83803ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83803ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83803ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:57:02.625810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_56_13_30331.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_55_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/54/image_01032025_09_55_13_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/53/image_01032025_09_54_13_29334.jpg', 2), ('/home/nano/Desktop/images/01032025/09/52/image_01032025_09_52_43_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/35/image_01032025_09_36_13_30321.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8046bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8046bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8046bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:57:31.949820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_57_13_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_56_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_56_13_30331.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_55_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/54/image_01032025_09_55_13_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/53/image_01032025_09_54_13_29334.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:58:02.671523
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_57_13_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_56_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_56_13_30331.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_55_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/54/image_01032025_09_55_13_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/53/image_01032025_09_54_13_29334.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8457cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8457cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8457cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:59:02.966924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_58_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_57_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_57_13_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_56_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_56_13_30331.jpg', 2), ('/home/nano/Desktop/images/01032025/09/55/image_01032025_09_55_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad746e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad746e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad746e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 09:59:32.072400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_58_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_57_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_57_13_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_56_43_30319.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87befef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87befef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87befef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:00:02.863134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_58_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_57_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_57_13_29314.jpg', 2), ('/home/nano/Desktop/images/01032025/09/56/image_01032025_09_56_43_30319.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f829e7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f829e7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f829e7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:00:32.162542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_58_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/57/image_01032025_09_57_43_30319.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2486ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2486ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2486ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:01:03.060907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d8aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d8aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d8aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:01:32.315678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc24e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc24e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc24e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:02:03.197624
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5edef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5edef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:02:32.427471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb165eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb165eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb165eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:03:03.108655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db8fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db8fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db8fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:03:32.518597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb447bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb447bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb447bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:04:03.495209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_58_43_29311.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a516e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a516e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a516e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:04:32.644439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/01/image_01032025_10_01_42_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87919e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87919e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87919e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:05:03.410904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/01/image_01032025_10_01_42_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_09_59_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/09/58/image_01032025_09_59_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c3f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c3f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c3f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:05:32.758003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_04_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/01/image_01032025_10_01_42_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae292e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae292e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae292e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:06:02.622413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_04_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/01/image_01032025_10_01_42_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_00_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/09/59/image_01032025_10_00_13_29315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb083bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb083bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb083bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:06:31.853129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_05_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_04_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/01/image_01032025_10_01_42_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9757eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9757eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9757eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:07:02.673405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_05_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_04_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/01/image_01032025_10_01_42_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/00/image_01032025_10_01_13_30327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7904ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7904ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7904ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:07:31.975936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_05_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_04_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf68aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf68aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf68aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:08:02.750197
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_05_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_04_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93939ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93939ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93939ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:08:32.087880
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_05_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/04/image_01032025_10_05_13_29329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81a0ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81a0ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81a0ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:09:03.113761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91a95e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91a95e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91a95e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:09:32.156834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faacbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faacbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faacbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:10:02.849370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/05/image_01032025_10_06_13_30327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d46ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d46ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d46ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:10:32.276708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fade61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:11:03.110848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_06_43_29312.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7661eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7661eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7661eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:11:32.362141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_10_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_07_43_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/06/image_01032025_10_07_13_30328.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e0c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e0c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e0c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:12:03.363657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_10_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa06dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa06dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa06dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:12:32.455732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_10_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2), ('/home/nano/Desktop/images/01032025/10/08/image_01032025_10_09_13_30323.jpg', 2), ('/home/nano/Desktop/images/01032025/10/07/image_01032025_10_08_13_29312.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d8cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d8cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d8cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:13:03.337669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_12_43_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_10_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:13:32.596453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_12_43_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_10_43_30319.jpg', 2), ('/home/nano/Desktop/images/01032025/10/09/image_01032025_10_09_43_29309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b6a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b6a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b6a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:14:03.668988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_12_43_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facd78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facd78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facd78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:14:32.781198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_12_43_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb233def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb233def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb233def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:15:02.677462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_12_43_29310.jpg', 2), ('/home/nano/Desktop/images/01032025/10/11/image_01032025_10_12_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/10/image_01032025_10_11_13_29327.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84ef3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84ef3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84ef3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:15:31.968575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_12_43_29310.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84af3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84af3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84af3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:16:02.905769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3df3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3df3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3df3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:16:32.045548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2), ('/home/nano/Desktop/images/01032025/10/12/image_01032025_10_13_13_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf61aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf61aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf61aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:17:03.073266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2303e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2303e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2303e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:17:32.154712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a21fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a21fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a21fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:18:02.924988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa99d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa99d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa99d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:18:32.248869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ec3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ec3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ec3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:19:03.448521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faed5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faed5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faed5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:19:32.405238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:20:03.387973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0363ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0363ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0363ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:20:32.510698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:21:03.240979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:21:32.602712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7ffcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7ffcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7ffcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:22:03.390024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f959b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f959b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f959b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:22:32.692264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f770f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f770f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f770f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:23:02.536662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3555e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3555e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3555e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:23:31.818796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:24:03.185671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:24:31.907494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84545ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84545ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84545ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:25:02.838892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa822ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa822ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa822ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:25:32.029478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac96aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac96aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac96aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:26:02.851899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5e2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5e2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5e2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:26:32.122117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f896f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f896f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f896f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:27:02.973001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbd4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbd4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bbd4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:27:32.242788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79833ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79833ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79833ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:28:03.118255
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91afae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91afae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91afae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:28:32.346845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77422ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77422ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77422ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:29:03.583392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f973a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f973a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f973a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:29:32.446892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88603ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88603ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88603ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:30:03.380590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa210fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa210fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa210fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:30:32.597569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ee1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ee1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ee1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:31:03.682708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f1f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f1f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f1f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:31:32.788342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0961ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0961ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0961ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:32:02.684232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8403bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8403bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8403bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:32:31.886818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:33:02.692597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f909ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f909ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f909ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:33:31.994325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e55fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e55fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e55fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:34:03.078059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2125ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2125ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2125ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:34:32.091664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ffcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ffcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ffcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:35:02.957571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:35:32.169563
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f895fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f895fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f895fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:36:02.928472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b4bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b4bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b4bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:36:32.272421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9eafef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9eafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9eafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:37:03.186766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f980d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:37:32.372183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab826ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab826ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab826ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:38:03.274049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab83fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab83fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab83fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:38:32.554472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86922ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86922ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86922ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:39:03.604969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa862fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa862fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa862fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:39:32.750114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d1feef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d1feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d1feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:40:02.828444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dad5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dad5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dad5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:40:31.844734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c71cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c71cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c71cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:41:02.962988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a2adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a2adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a2adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:41:31.930337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d87ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d87ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d87ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:42:02.741693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f841f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f841f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f841f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:42:32.049469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa5a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa5a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa5a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:43:02.942838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f8cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f8cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f8cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:43:32.157193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb143ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb143ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb143ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:44:03.079083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf986ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf986ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf986ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:44:32.261514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa163ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa163ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa163ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:45:03.158783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb28d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb28d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb28d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:45:32.355305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7665eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7665eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7665eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:46:03.335299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa6cee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa6cee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa6cee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:46:32.478903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa87aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa87aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa87aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:47:03.501781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c8b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c8b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c8b8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:47:32.564697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edaee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edaee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edaee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:48:03.264179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa35b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa35b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa35b7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:48:32.663781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8de65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8de65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8de65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:49:02.808929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85c86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85c86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85c86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:49:31.766317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa73aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa73aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa73aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:50:02.738141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f997d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f997d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f997d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:50:31.881234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f857fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f857fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f857fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:51:02.872421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f786a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f786a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f786a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:51:31.958938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f832ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f832ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f832ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:52:02.855510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6bdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6bdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6bdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:52:32.056308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa89c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa89c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa89c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:53:02.669173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b221ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b221ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b221ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:53:32.233913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dc00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dc00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dc00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:54:03.455219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a09ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a09ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a09ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:54:32.322919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73faef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:55:03.091271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabe4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabe4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabe4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:55:32.431471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5707ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5707ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5707ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:56:03.363212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f854ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f854ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f854ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:56:32.507091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d48ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d48ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d48ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:57:03.434385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7060e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7060e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7060e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:57:32.643178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faab7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faab7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faab7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:58:02.566496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_13_43_30314.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81465ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81465ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81465ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:59:03.089581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a9beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a9beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a9beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 10:59:32.035609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab093ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab093ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab093ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:00:02.753019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:00:32.122148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cf3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cf3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cf3cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:01:03.029950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facbdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facbdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facbdeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:01:32.235656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9660ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9660ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9660ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:02:03.084720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:02:32.322338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c497ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c497ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c497ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:03:03.260075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86d18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:03:32.421257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81eceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:04:03.541992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb073def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb073def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb073def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:04:32.503216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:05:03.435069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:05:32.632540
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb53ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb53ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb53ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:06:03.603029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c413ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c413ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c413ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:06:32.727187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:07:02.604726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f835a7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f835a7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f835a7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:07:31.823480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d123ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d123ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d123ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:08:02.467414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf266ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf266ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf266ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:08:31.913029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19faef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:09:03.185601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faae2def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faae2def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faae2def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:09:32.016061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5463ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5463ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5463ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:10:03.036176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ab0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ab0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ab0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:10:32.116506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b7adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b7adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b7adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:11:03.052929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa26c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa26c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa26c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:11:32.237773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6153ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6153ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6153ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:12:03.070662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8028cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8028cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8028cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:12:32.351679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b2e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b2e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b2e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:13:03.262402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76d42e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76d42e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76d42e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:13:32.429173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b9f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b9f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b9f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:14:03.702420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cfdfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cfdfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cfdfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:14:32.530621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:15:03.365894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f802ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f802ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f802ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:15:32.646224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f771f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f771f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f771f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:16:03.687635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0240e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0240e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0240e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:16:32.733654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f99ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f99ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f99ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:17:02.808638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80a73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:17:31.841671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7aa54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7aa54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7aa54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:18:02.664146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9179ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9179ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9179ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:18:31.980136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f790c8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f790c8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f790c8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:19:03.206059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:19:32.097124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d7def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d7def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d7def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:20:02.918878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa18b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa18b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa18b0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:20:32.189353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a693ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a693ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a693ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:21:03.157628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be79ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be79ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be79ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:21:32.311272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdf5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdf5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdf5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:22:02.982692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ca8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ca8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ca8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:22:32.438780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f917afe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f917afe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f917afe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:23:03.382134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d02fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d02fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d02fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:23:32.525638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:24:03.770774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:24:32.646045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d4fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d4fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d4fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:25:03.453619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83a66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83a66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83a66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:25:32.764415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76964ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76964ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76964ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:26:02.757360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92fdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92fdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92fdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:26:31.910376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:27:02.765114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3c96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3c96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3c96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:27:32.014242
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91965ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91965ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91965ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:28:02.993923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2e65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2e65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2e65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:28:32.123687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e034ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e034ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e034ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:29:03.196343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76d56ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76d56ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76d56ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:29:32.215548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed76ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:30:03.162232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79cc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79cc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79cc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:30:32.340088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:31:03.277884
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:31:32.440414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad595ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad595ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad595ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:32:03.164024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/13/image_01032025_10_14_12_29322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb55f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb55f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb55f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:32:32.551377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f768f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f768f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f768f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:33:03.503151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90112ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90112ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90112ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:33:32.633983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dcbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dcbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dcbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:34:03.455947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb088eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb088eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb088eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:34:32.728153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f953f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953f0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:35:02.645241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:35:31.836620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa87d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa87d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa87d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:36:02.682539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:36:31.914347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb396ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb396ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb396ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:37:03.006299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9273fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9273fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9273fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:37:32.021570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:38:02.878926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:38:32.097330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa276bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa276bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa276bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:39:03.284209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa74d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa74d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa74d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:39:32.180400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f4aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f4aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f4aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:40:03.215232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8babaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8babaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8babaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:40:32.304551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89bf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89bf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89bf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:41:03.202260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:41:32.400310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f830c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f830c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f830c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:42:03.308788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:42:32.482111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fc33ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fc33ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fc33ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:43:03.271895
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86435ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86435ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86435ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:43:32.596956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ae1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ae1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ae1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:44:03.765754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8115ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8115ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8115ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:44:32.692180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c45bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c45bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c45bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:45:02.353031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76daeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76daeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76daeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:45:31.774931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f875e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f875e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f875e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:46:02.726750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:46:31.893427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82850ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82850ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82850ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:47:02.888467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4a4de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4a4de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4a4de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:47:31.964097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f836ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f836ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f836ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:48:02.798556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f882beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f882beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f882beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:48:32.063687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92049e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92049e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92049e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:49:03.184920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4efcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4efcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4efcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:49:32.157724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4805ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4805ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4805ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:50:02.984644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a72def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a72def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a72def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:50:32.276863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faad5def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad5def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad5def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:51:03.115491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa220fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa220fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa220fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:51:32.384050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:52:03.326234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8697bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8697bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8697bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:52:32.471913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:53:03.469364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e5c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e5c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e5c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:53:32.586635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa34c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa34c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa34c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:54:03.421369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:54:32.681257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b32eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b32eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b32eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:55:02.627869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8679eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8679eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8679eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:55:31.794006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94c30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94c30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94c30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:56:02.920849
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91829ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91829ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91829ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:56:31.897484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58d9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:57:02.736784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36b3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36b3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb36b3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:57:31.982530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89990ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89990ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89990ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:58:02.815082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ddee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ddee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ddee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:59:03.294723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f999e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f999e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f999e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 11:59:32.247099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faef25e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef25e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef25e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:00:02.945827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be97ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be97ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be97ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:00:32.384996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f844daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f844daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f844daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:01:03.317767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88598ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88598ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88598ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:01:32.479836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdadef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdadef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdadef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:02:03.338420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a933ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a933ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a933ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:02:32.570864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fca9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fca9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fca9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:03:03.362215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d79def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d79def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d79def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:03:32.679167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87484ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87484ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87484ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:04:03.004894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f826a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f826a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f826a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:04:31.775218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7df81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7df81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7df81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:05:02.585289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e355ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e355ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e355ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:05:31.935750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad7f5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:06:02.779652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87285ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87285ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87285ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:06:32.041712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c1e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c1e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c1e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:07:02.869703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa19fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa19fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa19fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:07:32.124252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d853ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d853ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d853ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:08:03.106036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:08:32.199468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4c2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4c2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4c2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:09:03.461317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:09:32.389466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c38def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c38def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c38def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:10:03.188987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82d41ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:10:32.504463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9441fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9441fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9441fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:11:03.424152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80170ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80170ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80170ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:11:32.609925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f892a7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f892a7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f892a7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:12:03.349762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b75eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b75eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b75eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:12:32.706370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa66fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa66fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa66fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:13:02.663024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f595ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f595ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f595ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:13:31.799514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa91b2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa91b2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa91b2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:14:03.027363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88674ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88674ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88674ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:14:31.884763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91ceeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91ceeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91ceeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:15:03.027703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0537ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0537ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0537ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:15:31.988279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79b68ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79b68ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79b68ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:16:03.044249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f395ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f395ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f395ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:16:32.096865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ec5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ec5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ec5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:17:02.967566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f709ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f709ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f709ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:17:32.204028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c05eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c05eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c05eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:18:03.023766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:18:32.316263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93227e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93227e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93227e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:19:03.432509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad9c0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad9c0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad9c0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:19:32.405637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f84ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f84ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f84ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:20:03.442607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a9ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a9ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a9ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:20:32.484695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:21:03.249916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f905d9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f905d9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f905d9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:21:32.569150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80d15e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80d15e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80d15e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:22:03.376306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:22:32.664472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8802fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8802fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8802fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:23:02.569280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c01fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c01fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c01fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:23:31.764151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e78def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e78def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e78def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:24:02.925908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9324cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9324cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9324cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:24:31.867742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1f4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1f4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1f4bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:25:02.900181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0fd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:25:31.950157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b6ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b6ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b6ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:26:03.046084
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c3e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c3e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c3e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:26:32.057463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8521eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8521eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8521eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:27:03.021198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a2e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a2e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a2e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:27:32.147586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:28:03.090162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a4cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:28:32.250304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99492ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99492ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99492ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:29:03.654238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bb74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bb74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bb74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:29:32.353785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84a6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84a6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84a6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:30:03.391465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84211ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84211ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84211ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:30:32.434228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84cbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84cbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84cbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:31:03.304743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8936bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8936bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8936bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:31:32.524639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac3ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac3ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac3ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:32:03.351308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef0fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:32:32.623428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa03ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa03ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa03ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:33:03.551342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f980dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:33:32.708198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa47a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa47a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa47a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:34:02.905328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:34:31.808634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:35:02.632465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80383ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80383ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80383ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:35:31.936703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83cf7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83cf7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83cf7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:36:02.736182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a4c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a4c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a4c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:36:32.042855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8612def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8612def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8612def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:37:02.767002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae9f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:37:32.144996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78a6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78a6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78a6cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:38:03.152742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa191bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa191bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa191bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:38:32.259298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8949fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8949fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8949fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:39:03.423006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_14_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaec7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaec7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaec7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:39:32.370393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec59ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:40:03.185906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:40:32.448743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eec6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eec6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7eec6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:41:03.472823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa022de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa022de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa022de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:41:32.589286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa566eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa566eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa566eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:42:03.457296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0195ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0195ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0195ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:42:32.718825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8978de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8978de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8978de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:43:02.826582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:43:31.865207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0faef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:44:03.088262
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8cc6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8cc6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8cc6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:44:32.004330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae4a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae4a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae4a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:45:03.122191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8ffdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8ffdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8ffdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:45:32.107439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa115ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa115ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa115ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:46:02.969114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3600ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3600ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3600ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:46:32.221738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80675ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80675ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80675ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:47:03.179574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1d3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1d3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1d3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:47:32.395765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f387ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f387ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f387ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:48:03.280731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2648ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2648ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2648ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:48:32.479511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77256ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:49:03.726850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:49:32.569432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa625fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa625fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa625fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:50:03.367620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83cf4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83cf4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83cf4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:50:32.684364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95968ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95968ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95968ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:51:02.579979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8cd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8cd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8cd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:51:31.797294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f138ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f138ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f138ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:52:02.510560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b065ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b065ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b065ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:52:31.915485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa67e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa67e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa67e8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:53:03.075691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a483ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a483ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a483ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:53:31.996205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80feee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80feee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80feee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:54:02.878868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89900e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89900e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89900e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:54:32.111745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88d31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88d31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88d31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:55:03.028337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a77fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a77fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a77fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:55:32.293075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb158ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb158ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb158ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:56:03.028394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e062e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e062e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e062e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:56:32.371842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bed0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:57:03.149662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:57:32.489026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb54dfe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb54dfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb54dfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:58:03.270449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:59:03.218414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0133e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0133e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0133e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 12:59:32.290842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e049ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e049ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e049ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:00:03.010978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7688fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7688fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7688fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:00:32.383135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91315e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91315e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91315e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:01:03.306733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f664ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f664ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f664ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:01:32.490894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ad4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ad4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ad4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:02:03.511842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bba4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bba4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bba4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:02:32.595551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ff8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ff8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ff8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:03:03.567657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1ca3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1ca3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1ca3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:03:32.698066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f839d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f839d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:04:02.908822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f2cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:04:31.791316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a93def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a93def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a93def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:05:02.575287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f961ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f961ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f961ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:05:31.880770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:06:02.938763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98542ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98542ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98542ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:06:31.999943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93c03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93c03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93c03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:07:02.928640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f044ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f044ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f044ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:07:32.179208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cd63ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cd63ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cd63ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:08:03.117783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9258def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9258def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9258def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:08:32.286526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96da1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96da1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96da1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:09:03.488325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ad8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ad8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ad8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:09:32.389110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1ce1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1ce1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1ce1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:10:03.220438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5ad5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5ad5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5ad5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:10:32.476862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:11:03.215303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c9def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:11:32.588779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2), ('/home/nano/Desktop/images/01032025/10/14/image_01032025_10_15_13_30329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d631ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d631ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d631ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:12:03.547726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb540de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb540de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb540de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:12:32.682800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77741ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77741ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77741ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:13:02.654367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96bbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96bbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96bbaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:13:31.780153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:14:02.514780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f800ace80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f800ace80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f800ace80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:14:31.898372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4012ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4012ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4012ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:15:02.754095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:15:32.068837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:16:03.102982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f840dae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f840dae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f840dae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:16:32.176358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:17:03.062236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a753ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a753ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a753ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:17:32.262197
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:18:03.193357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82b1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82b1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82b1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:18:32.377154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d07fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d07fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d07fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:19:03.523688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0baef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:19:32.487401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9025aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9025aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9025aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:20:03.352801
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87affef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87affef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87affef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:20:32.573719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77642ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77642ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77642ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:21:03.505846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facfe5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facfe5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facfe5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:21:32.681785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabd02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabd02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabd02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:22:02.646526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb04a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb04a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb04a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:22:31.787819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb058cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb058cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb058cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:23:02.814322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3d93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:23:31.896289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5bd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5bd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5bd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:24:02.954026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dc63ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dc63ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dc63ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:24:32.015986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad91fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad91fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad91fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:25:02.902198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4516ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4516ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4516ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:25:32.111225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9128aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9128aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9128aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:26:03.005486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f835e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f835e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f835e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:26:32.200893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7dd5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7dd5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7dd5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:27:03.239855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2b75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2b75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2b75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:27:32.286103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b3d3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b3d3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b3d3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:28:03.037421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96737e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96737e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96737e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:28:32.368414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:29:03.560437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1098ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1098ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1098ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:29:32.587199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faca38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faca38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faca38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:30:03.288406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95bb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95bb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95bb0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:30:32.680359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa683aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa683aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa683aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:31:02.711180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9291aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9291aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9291aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:31:31.786726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb46b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb46b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb46b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:32:02.702312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9eb70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9eb70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9eb70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:32:31.896761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef3aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef3aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef3aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:33:02.777769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dfc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dfc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dfc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:33:32.026327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77f33ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77f33ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77f33ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:34:03.059244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fe22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:34:32.155018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6746ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6746ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6746ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:35:02.952319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ac4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ac4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ac4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:35:32.238208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facfd2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facfd2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facfd2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:36:03.062021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77ab4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:36:32.332024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76a61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76a61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76a61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:37:03.055145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9195cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9195cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9195cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:37:32.424653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99446e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99446e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99446e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:38:03.360964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:38:32.541141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:39:03.656071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95518ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95518ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95518ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:39:32.649865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f9ece80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f9ece80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f9ece80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:40:02.638321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c57fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c57fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c57fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:40:31.747150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80323e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80323e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80323e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:41:02.384802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97689ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97689ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97689ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:41:31.850994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5316ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5316ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5316ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:42:02.676877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:42:31.939309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:43:02.725574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ffcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ffcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ffcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:43:32.040617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f651e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f651e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f651e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:44:03.061526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:44:32.164348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81063ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81063ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81063ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:45:03.060568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93708ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93708ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93708ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:45:32.272246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ecc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ecc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ecc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:46:03.184039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8facdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8facdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8facdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:46:32.371950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2), ('/home/nano/Desktop/images/01032025/10/15/image_01032025_10_15_43_30315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c30def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c30def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c30def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:47:03.412885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad947ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad947ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad947ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:47:32.482402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91173ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91173ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91173ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:48:03.329632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87bffe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87bffe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87bffe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:48:32.575128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:49:03.773124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:49:32.663628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:50:02.604436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac9e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac9e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac9e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:50:31.867405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:51:02.548988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:51:31.956226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae7aee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae7aee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae7aee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:52:02.880855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:52:32.051723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98149ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98149ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98149ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:53:02.838228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f843fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f843fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f843fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:53:32.166545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2ddaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2ddaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2ddaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:54:03.424271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2006e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2006e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2006e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:54:32.255264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac27eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac27eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac27eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:55:03.049423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85f5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85f5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85f5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:55:32.363058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89db5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89db5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89db5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:56:03.181877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:56:32.459625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84eccef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84eccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84eccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:57:03.341280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1dbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1dbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1dbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:57:32.549903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9777aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9777aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9777aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:58:03.381568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a9d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a9d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a9d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:59:02.817026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d7b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d7b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d7b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 13:59:31.909872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8316fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8316fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8316fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:00:02.850065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb222aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb222aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb222aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:00:31.983206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb10bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb10bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb10bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:01:02.912567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cbafe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cbafe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cbafe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:01:32.157059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd50ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd50ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd50ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:02:03.085273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97aaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97aaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97aaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:02:32.275208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94185ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94185ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94185ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:03:03.100976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f943b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f943b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f943b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:03:32.341048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90cdfe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90cdfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90cdfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:04:03.538469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b0dee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b0dee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b0dee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:04:32.482463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa3cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa3cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa3cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:05:03.148891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b138ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b138ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b138ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:05:32.581541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1493e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1493e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1493e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:06:03.382619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:06:32.716837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a93def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a93def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a93def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:07:02.540436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa16caef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa16caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa16caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:07:31.796537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80814ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80814ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80814ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:08:02.716085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6073ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6073ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6073ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:08:31.928600
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f1de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f1de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f1de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:09:03.112433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82157ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82157ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82157ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:09:32.007434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c582ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c582ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c582ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:10:03.073583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3924e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3924e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3924e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:10:32.126087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b6fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b6fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b6fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:11:03.084177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5614ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5614ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5614ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:11:32.224436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f890a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f890a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f890a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:12:03.034870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f795faef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:12:32.329169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb39e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb39e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb39e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:13:03.259299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae94aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae94aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae94aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:13:32.429573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa844ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa844ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa844ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:14:03.565465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c186ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c186ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c186ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:14:32.519112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f985e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f985e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f985e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:15:03.370608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35c9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35c9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35c9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:15:32.638994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f993f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f993f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f993f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:16:03.409425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a8ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a8ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a8ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:16:32.739439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f896d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f896d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f896d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:17:02.824715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:17:31.851907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be19e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be19e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be19e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:18:02.730562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f949d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f949d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f949d5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:18:31.963206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9433ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9433ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9433ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:19:02.665917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b505e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b505e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b505e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:19:32.074410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a438ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a438ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a438ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:20:03.019180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f805a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f805a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f805a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:20:32.157118
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:21:03.109282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7149e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7149e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7149e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:21:32.269505
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99a9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99a9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99a9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:22:03.135299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9135bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9135bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9135bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:22:32.364808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb336def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb336def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb336def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:23:03.109305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faed0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faed0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faed0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:23:32.485028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f954baef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:24:03.553883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91fa2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91fa2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91fa2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:24:32.572575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819cbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:25:03.371548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f788d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f788d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f788d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:25:32.735617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8489ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8489ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8489ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:26:02.794130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa64efe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa64efe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa64efe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:26:31.837422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafed5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafed5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafed5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:27:02.708548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e83de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e83de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e83de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:27:31.932448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f861ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f861ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f861ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:28:02.903587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:28:32.037248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dbe4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dbe4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dbe4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:29:03.122068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ec8bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:29:32.140247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ba02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ba02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ba02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:30:03.158106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f859c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f859c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f859c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:30:32.237445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ea51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ea51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ea51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:31:03.038487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:31:32.384401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d05e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d05e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d05e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:32:03.064900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1bcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1bcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1bcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:32:32.469547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87fdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87fdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87fdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:33:03.087278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa511cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa511cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa511cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:33:32.596696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:34:03.806971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac738ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac738ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac738ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:34:32.681236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:35:02.756137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82efae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82efae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82efae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:35:31.804281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77204ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77204ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77204ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:36:02.736143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4263e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4263e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4263e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:36:31.882494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:37:02.771823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a4aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a4aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a4aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:37:31.977427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f931ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:38:02.929867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99990ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99990ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99990ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:38:32.074784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8211eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8211eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8211eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:39:03.313232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f950dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:39:32.170873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f784b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f784b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f784b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:40:03.232395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79321ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79321ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79321ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:40:32.387694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87f5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87f5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87f5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:41:03.305570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7affcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7affcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7affcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:41:32.493948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83b7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83b7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83b7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:42:03.172233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faea95e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea95e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea95e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:42:32.602329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8025ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8025ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8025ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:43:03.392999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:43:32.690272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77421ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77421ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77421ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:44:02.865991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79affef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79affef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79affef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:44:31.788274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa3fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa3fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa3fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:45:02.812650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6759ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:45:31.869086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86cfaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86cfaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86cfaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:46:02.651405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2928ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2928ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2928ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:46:31.974420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a42e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a42e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a42e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:47:03.085835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b368ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b368ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b368ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:47:32.083109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cabbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cabbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cabbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:48:03.050942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e702ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e702ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e702ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:48:32.183258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:49:03.403414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f941afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f941afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f941afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:49:32.292239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:50:03.054689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9efedef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9efedef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9efedef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:50:32.369313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6cdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:51:03.313049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d20aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d20aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d20aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:51:32.505810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ea17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ea17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ea17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:52:03.393803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f776bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f776bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f776bcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:52:32.595156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac677ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac677ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac677ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:53:03.518784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9999def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9999def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9999def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:53:32.694563
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2), ('/home/nano/Desktop/images/01032025/10/16/image_01032025_10_16_43_30316.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96311ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96311ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96311ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:54:02.916636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:54:31.804708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91271ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91271ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91271ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:55:02.739240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c9b9e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c9b9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c9b9e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:55:31.900803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9495eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9495eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9495eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:56:02.616723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80856ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80856ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80856ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:56:32.046432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ffb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ffb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ffb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:57:03.091983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fb80e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fb80e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fb80e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:57:32.123684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88391ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88391ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88391ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:59:03.542981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88089ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88089ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88089ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 14:59:32.718605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81593ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81593ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81593ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:00:02.459842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cc75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:00:31.829853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86824ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86824ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86824ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:01:02.504158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:01:31.930944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7febef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7febef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7febef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:02:02.674780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faacfbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faacfbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faacfbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:02:32.031460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:03:02.683746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b62be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b62be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b62be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:03:32.120069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb04ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb04ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb04ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:04:02.926802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:04:32.192794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9087bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9087bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9087bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:05:02.791049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d540ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d540ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d540ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:05:32.327971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f919a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f919a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f919a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:06:03.014607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa58a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:06:32.440844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8677fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8677fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8677fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:07:03.128905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3dce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3dce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3dce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:07:32.545156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f891ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f891ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f891ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:08:03.328364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8959ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8959ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8959ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:08:32.657021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ec5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ec5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95ec5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:09:03.570716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89710e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89710e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89710e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:09:32.728974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa30e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa30e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa30e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:10:02.443294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f982d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f982d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f982d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:10:31.867741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:11:02.469131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f199ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f199ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f199ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:11:31.978631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8014ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8014ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8014ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:12:02.641270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90435e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90435e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90435e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:12:32.084349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ebbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ebbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ebbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:13:02.603449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a388ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a388ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a388ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:13:32.176638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ac20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ac20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ac20ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:14:03.157894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0672e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0672e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0672e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:14:32.273869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f900ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f900ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f900ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:15:03.009733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7c18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7c18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7c18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:15:32.368747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f767c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f767c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f767c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:16:02.807396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad5aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:16:32.493237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f83cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f83cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f83cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:17:03.158870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef6ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef6ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef6ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:17:32.612971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:18:03.347135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89051ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89051ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89051ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:18:32.694728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d7f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d7f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d7f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:19:02.504278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f789b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f789b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f789b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:19:31.837057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ddc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ddc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ddc3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:20:02.578203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa063cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa063cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa063cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:20:31.937405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae127ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae127ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae127ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:21:02.602510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce95e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce95e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce95e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:21:32.060932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dcd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dcd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dcd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:22:02.732376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:22:32.143147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bcbcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bcbcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bcbcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:23:02.921926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:23:32.254414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb08b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb08b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb08b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:24:03.048850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88aa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88aa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88aa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:24:32.354521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f09e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f09e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f09e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:25:03.036080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9befef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9befef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9befef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:25:32.478636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f790acef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f790acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f790acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:26:03.151350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f216ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f216ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f216ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:26:32.590028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78c69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78c69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78c69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:27:03.298915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2), ('/home/nano/Desktop/images/01032025/10/58/image_01032025_10_59_13_30320.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80f01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80f01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80f01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:27:32.700345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92125ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92125ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92125ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:28:02.303512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:28:31.799777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b322ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:29:02.477953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa992eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa992eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa992eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:29:31.898750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:30:02.643947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:30:31.999940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ab55e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ab55e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ab55e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:31:02.617325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa344eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa344eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa344eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:31:32.091955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5651ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5651ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5651ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:32:02.748417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ff39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:32:32.185711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd66ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:33:02.931588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:33:32.321708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae4e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae4e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae4e4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:34:03.336592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7079ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:34:32.434112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:35:03.263024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f844efef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f844efef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f844efef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:35:32.544370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:36:03.299724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:36:32.636993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e14ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e14ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e14ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:37:03.383064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:37:32.717517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e331ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e331ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e331ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:38:02.479023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:38:31.965314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e21e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e21e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e21e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:39:02.882284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98866ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98866ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98866ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:39:32.048647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f785a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f785a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f785a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:40:02.787597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac4a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac4a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac4a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:40:32.205286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:41:02.825049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f779c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f779c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f779c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:41:32.289957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a88def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a88def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a88def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:42:02.901946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d289e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d289e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d289e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:42:32.393996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78766ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:43:02.980066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac968ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac968ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac968ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:43:32.494745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa322e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa322e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa322e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:44:03.437107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1fe9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1fe9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1fe9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:44:32.598813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fe26ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fe26ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fe26ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:45:03.130438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac58fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac58fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac58fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:45:32.681139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84387e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84387e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84387e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:46:02.501433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f777b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f777b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f777b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:46:31.816918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4215e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4215e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4215e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:47:02.519016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f53ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f53ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f53ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:47:31.906461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb412cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb412cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb412cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:48:02.556808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c40def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c40def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c40def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:48:32.003274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a468ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a468ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a468ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:49:02.961942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90eb8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90eb8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90eb8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:49:32.083393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d0ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d0ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d0ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:50:02.730792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:50:32.179986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fdaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:51:02.866851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3688ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3688ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3688ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:51:32.288035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9214aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9214aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9214aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:52:02.904147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81778ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81778ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81778ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:52:32.396789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c7cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:53:03.065808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f857bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f857bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f857bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:53:32.478158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96d1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:54:03.220506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e8a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e8a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e8a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:54:32.572498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87181ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87181ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87181ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:55:03.344933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7efeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7efeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7efeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:55:32.680191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b7baef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b7baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b7baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:56:02.399896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:56:31.778434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aeafef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aeafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aeafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:57:02.426871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d1f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d1f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d1f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:57:31.844377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de66e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de66e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de66e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:58:02.218089
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c200e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c200e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c200e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:59:03.188614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e0fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 15:59:32.413449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77fcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77fcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77fcaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:00:03.126925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:00:32.510687
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90851ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90851ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90851ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:01:03.202390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faad94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad94ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:01:32.653235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5383ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5383ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5383ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:02:03.184216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8975aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8975aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8975aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:02:32.794216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faec34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faec34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faec34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:03:02.234047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84825ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84825ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84825ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:03:31.897307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eaaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eaaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eaaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:04:02.816683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2d70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2d70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2d70ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:04:31.995923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:05:02.634874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:05:32.117534
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:06:02.715882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faea17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:06:32.218698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d06def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d06def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d06def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:07:02.948573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2f96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2f96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2f96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:07:32.288301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f793f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f793f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f793f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:08:03.030989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa09eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa09eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa09eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:08:32.499215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e2f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:09:03.485486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c6daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c6daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c6daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:09:32.592788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99027ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99027ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99027ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:10:03.170332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c00ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:10:32.694285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:11:02.328643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a929e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a929e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a929e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:11:31.790067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88927ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88927ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88927ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:12:02.515013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96bdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96bdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96bdbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:12:31.896515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b869ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b869ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b869ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:13:02.623086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92733ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92733ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92733ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:13:31.991594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92080ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92080ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92080ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:14:02.979231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c033ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c033ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c033ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:14:32.107821
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90074ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90074ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90074ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:15:02.887455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f35fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f35fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f35fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:15:32.172188
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c959ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c959ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c959ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:16:02.719595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:16:32.268278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98630ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98630ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98630ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:17:03.033047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:17:32.382093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d368ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d368ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d368ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:18:02.992822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:18:32.465138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85dcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85dcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85dcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:19:03.201626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f9e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f9e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f9e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:19:32.562475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa478cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa478cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa478cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:20:03.144178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:20:32.659384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85768e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85768e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85768e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:21:02.360325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99061ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99061ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99061ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:21:31.788132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e932ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e932ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e932ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:22:02.491013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9204cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9204cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9204cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:22:31.874543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cde8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cde8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cde8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:23:02.495869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:23:31.982307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bcd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bcd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bcd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:24:02.924170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f828ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f828ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f828ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:24:32.101310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:25:02.630739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4ee2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4ee2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4ee2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:25:32.195191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92c03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92c03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92c03ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:26:02.968341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b13e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b13e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b13e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:26:32.324991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ebeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ebeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1ebeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:27:02.965360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ef24ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ef24ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ef24ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:27:32.429160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fc75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fc75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fc75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:28:03.258701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1038ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1038ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1038ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:28:32.535446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81c13ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81c13ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81c13ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:29:03.483331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d761ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d761ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d761ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:29:32.677836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e34bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e34bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e34bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:30:02.323835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2db1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2db1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2db1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:30:31.822247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab350ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab350ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab350ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:31:02.410467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0637ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0637ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0637ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:31:31.894414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e104ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e104ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e104ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:32:02.645549
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57e7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57e7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57e7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:32:31.980223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e205ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e205ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e205ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:33:02.770784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b5fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b5fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b5fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:33:32.092906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2), ('/home/nano/Desktop/images/01032025/11/32/image_01032025_11_32_42_29308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c85fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c85fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c85fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:34:02.931351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76cdcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76cdcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76cdcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:34:32.203099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d246ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d246ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d246ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:35:02.895591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ac1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ac1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ac1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:35:32.309436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faee24ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faee24ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faee24ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:36:02.930019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:36:32.402869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93df7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93df7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93df7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:37:02.884959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1855ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:37:32.524152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadd69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadd69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadd69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:38:03.023185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf5bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf5bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf5bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:38:32.656114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa86c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa86c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa86c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:39:02.626120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da7aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da7aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da7aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:39:31.744442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1e40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1e40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1e40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:40:02.418220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:40:31.890726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e790ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e790ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e790ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:41:02.582653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb57cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb57cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb57cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:41:31.969023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e636ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e636ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e636ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:42:02.667632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa45a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa45a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa45a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:42:32.074761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edede80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edede80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9edede80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:43:02.732417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0583ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0583ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0583ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:43:32.166443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb325fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb325fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb325fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:44:02.876415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8460fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8460fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8460fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:44:32.289938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77415ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77415ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77415ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:45:02.927802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5930ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5930ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5930ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:45:32.408470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2a07ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2a07ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2a07ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:46:03.136046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae55fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae55fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae55fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:46:32.512684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b02aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b02aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b02aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:47:03.176458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f87cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f87cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f87cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:47:32.633689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa943bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa943bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa943bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:48:03.348862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f91ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:48:32.722539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2fedef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2fedef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2fedef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:49:02.690339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:49:31.794038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cf27e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cf27e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cf27e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:50:02.413653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2a21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2a21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2a21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:50:31.891571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99277ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99277ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99277ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:51:02.562482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f964a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:51:31.993873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dc9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dc9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dc9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:52:02.643957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:52:32.087291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f5def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f5def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f5def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:53:02.805607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb52ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:53:32.187220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7793aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7793aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7793aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:54:02.867798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98c34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98c34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98c34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:54:32.295932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77354e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77354e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77354e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:55:03.044030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:55:32.421608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92cbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92cbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92cbdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:56:03.050506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3ff6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3ff6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3ff6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:56:32.529280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f808f7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f808f7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f808f7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:57:03.271475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d795e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d795e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d795e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:57:32.630160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8219eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8219eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8219eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:58:03.363760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bccce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bccce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bccce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:59:03.223875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7df54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7df54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7df54ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 16:59:32.393256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb27afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:00:03.059096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9727ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9727ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9727ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:00:32.491040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4caeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4caeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4caeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:01:03.175992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf4abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:01:32.610450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8962eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8962eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8962eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:02:03.391338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f37ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f37ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98f37ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:02:32.736179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa792de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa792de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa792de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:03:02.354863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b71def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b71def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b71def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:03:31.823770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f820f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f820f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f820f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:04:02.805472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f831c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f831c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f831c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:04:31.929174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f962a6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f962a6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f962a6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:05:02.599915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f224e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f224e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f224e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:05:32.052247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83f02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:06:02.821753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83fa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83fa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83fa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:06:32.137123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77e77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77e77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77e77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:07:02.717679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/12/38/image_01032025_12_39_13_30324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a230ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a230ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a230ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:07:32.245172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7886bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7886bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7886bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:08:02.908573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99aa4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99aa4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99aa4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:08:32.327400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4db4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4db4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4db4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:09:03.265195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad630ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad630ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad630ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:09:32.412015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:10:03.103000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9582bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9582bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9582bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:10:32.507090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:11:03.176354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dfb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dfb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dfb7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:11:32.613818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b1eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b1eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b1eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:12:03.277253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e001ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e001ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e001ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:12:32.707447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb268fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb268fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb268fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:13:02.387794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f825ebe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f825ebe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f825ebe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:13:31.817423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb048cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb048cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb048cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:14:02.675570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0154ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:14:31.927367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2270ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2270ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2270ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:15:02.514987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8252eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8252eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8252eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:15:32.029742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4b26ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4b26ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4b26ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:16:02.717177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:16:32.129708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0eae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0eae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf0eae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:17:02.738044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:17:32.243279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9481de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9481de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9481de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:18:02.724403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:18:32.323313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb44a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb44a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb44a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:19:03.357946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99401e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99401e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99401e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:19:32.443255
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8495ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8495ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8495ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:20:03.082527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:20:32.530301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa21eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa21eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa21eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:21:03.232445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97205ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97205ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97205ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:21:32.716395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:22:02.317761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ad60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ad60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ad60ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:22:31.857443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabb6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabb6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabb6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:23:02.617999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83458ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83458ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83458ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:23:31.987427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87c27ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87c27ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87c27ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:24:03.062100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa66e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa66e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa66e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:24:32.083806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:25:02.732167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e49eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e49eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e49eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:25:32.206909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f784f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f784f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f784f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:26:02.857090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa61a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa61a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa61a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:26:32.301806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b78eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b78eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b78eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:27:03.003247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f824bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:27:32.401896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f793d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f793d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f793d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:28:02.950341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4faee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4faee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4faee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:28:32.484281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98979e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98979e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98979e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:29:03.161841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8beafef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8beafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8beafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:29:32.580976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb451fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb451fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb451fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:30:03.353646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f59bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f59bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f59bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:30:32.761412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb61ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:31:02.538499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b451ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b451ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b451ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:31:31.844016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82751e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82751e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82751e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:32:02.568071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa929ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa929ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa929ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:32:31.962542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3afe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3afe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3afe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:33:02.579587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1257e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1257e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1257e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:33:32.122012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa75d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa75d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa75d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:34:03.100031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dadeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dadeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dadeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:34:32.219893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa409eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa409eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa409eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:35:02.839027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:35:32.306719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9c9ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9c9ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9c9ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:36:02.924091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f840e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f840e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f840e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:36:32.425218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fade31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade31ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:37:03.090802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99127ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99127ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99127ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:37:32.510284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e9eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e9eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e9eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:38:03.179625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b4f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b4f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b4f4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:38:32.595293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1049ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1049ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1049ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:39:03.559731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa614eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa614eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa614eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:39:32.684453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb348aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb348aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb348aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:40:02.287977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa06c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa06c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa06c9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:40:31.806840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82c18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:41:02.485115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f96bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f96bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f96bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:41:31.917038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80ca1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80ca1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80ca1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:42:02.557721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d782ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d782ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d782ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:42:32.017418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77129ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:43:02.765342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:43:32.118215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab01def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab01def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab01def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:44:03.088542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98adfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98adfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98adfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:44:32.238945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b30cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b30cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b30cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:45:02.878595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f989b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f989b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f989b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:45:32.335802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7690ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7690ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7690ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:46:02.964533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78903e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78903e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78903e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:46:32.422806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d5e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d5e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d5e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:47:02.980457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84974ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84974ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84974ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:47:32.537036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd54e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd54e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dd54e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:48:03.216758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f799fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f799fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f799fdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:48:32.624206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93da1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93da1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93da1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:49:03.632186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c237ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c237ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c237ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:49:32.741580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96c9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96c9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96c9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:50:02.409924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9533fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9533fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9533fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:50:31.869870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ccdcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ccdcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ccdcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:51:02.502825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f945afe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f945afe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f945afe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:51:31.945455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:52:02.613227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b8e4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b8e4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b8e4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:52:32.076846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb39d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb39d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb39d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:53:02.754827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f195ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f195ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f195ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:53:32.213464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94252e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94252e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94252e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:54:03.028760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a85bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a85bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a85bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:54:32.369814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1c2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1c2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1c2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:55:03.060713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9a12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9a12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9a12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:55:32.464838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92839ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92839ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92839ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:56:02.984832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5010ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5010ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5010ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:56:32.534073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae8a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae8a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae8a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:57:03.117767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fd85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fd85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fd85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:57:32.645098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80befe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80befe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80befe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:58:03.121559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81f36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81f36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81f36ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:59:02.964122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9714fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9714fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9714fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 17:59:32.103222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89fa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89fa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89fa1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:00:02.826618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabf1fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:00:32.239975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6bc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6bc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6bc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:01:03.032565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f8c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f8c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f8c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:01:32.324797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa96e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa96e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa96e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:02:03.006900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98849ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98849ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98849ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:02:32.455130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facce9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facce9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facce9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:03:03.266279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa41bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:03:32.545784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb126aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb126aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb126aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:04:03.535100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ca1cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ca1cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ca1cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:04:32.685106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f65fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f65fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f65fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:05:02.359734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ce86ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:05:31.772544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9801eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9801eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9801eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:06:02.346466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8df30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8df30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8df30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:06:31.985321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d29ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d29ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79d29ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:07:02.509205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:07:32.016825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb00a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb00a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb00a3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:08:02.794073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87c1ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87c1ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87c1ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:08:32.104624
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:09:03.193751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b00be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b00be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b00be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:09:32.191723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb567aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb567aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb567aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:10:02.863530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d99e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d99e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d99e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:10:32.319249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cecbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cecbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cecbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:11:03.000613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:11:32.408054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89eebe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89eebe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89eebe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:12:03.175552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bafef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80bafef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:12:32.505836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e972ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e972ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e972ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:13:03.019422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:13:32.588834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2), ('/home/nano/Desktop/images/01032025/13/12/image_01032025_13_12_43_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f998b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f998b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f998b5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:14:03.682692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f864d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f864d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f864d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:14:32.697098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa98a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa98a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa98a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:15:02.144132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb307cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb307cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb307cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:15:31.803500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b260ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b260ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b260ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:16:02.420503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa505de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa505de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa505de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:16:31.902263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f920feef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f920feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f920feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:17:02.672173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f801c0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f801c0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f801c0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:17:31.988101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80254ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80254ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80254ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:18:02.684086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77cf1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77cf1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77cf1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:18:32.076080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d735e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d735e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d735e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:19:03.036324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4020e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4020e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4020e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:19:32.196901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92aa5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92aa5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92aa5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:20:02.808654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faecf4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faecf4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faecf4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:20:32.334987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f791cfe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f791cfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f791cfe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:21:03.036933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7772bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7772bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7772bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:21:32.432989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ccaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:22:03.229332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79808ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79808ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79808ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:22:32.537082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:23:03.217650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f980bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:23:32.658329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94140ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:24:02.521152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ac8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ac8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ac8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:24:31.744202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa89eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa89eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa89eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:25:02.444723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f952f4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f952f4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f952f4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:25:31.832339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ef3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ef3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ef3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:26:02.334202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa582fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa582fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa582fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:26:31.934075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb228aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb228aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb228aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:27:02.596550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa5ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa5ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa5ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:27:32.027725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d961e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d961e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d961e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:28:02.675286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a0e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a0e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a0e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:28:32.137863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faea0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faea0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:29:03.165366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a75fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a75fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a75fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:29:32.211277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafaaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafaaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafaaeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:30:02.896775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dadaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dadaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dadaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:30:32.302565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c06ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c06ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1c06ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:31:03.030245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facb8def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facb8def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facb8def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:31:32.388270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f874acef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f874acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f874acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:32:02.844824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2f6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2f6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2f6aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:32:32.492737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d19ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:33:03.100702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:33:32.625932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76c95ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:34:03.588222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1e02ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:34:32.738946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4394ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4394ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4394ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:35:02.281995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f957d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f957d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f957d3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:35:31.823721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1263ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1263ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1263ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:36:02.489373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc1def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc1def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc1def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:36:31.921422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e5c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e5c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e5c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:37:02.521261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb15f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb15f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb15f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:37:32.008849
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d9def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6d9def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:38:02.656097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82de9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82de9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82de9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:38:32.106395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8acc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8acc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8acc8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:39:03.086374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79153ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79153ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79153ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:39:32.236647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b4a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b4a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b4a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:40:02.920298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b37eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b37eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b37eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:40:32.328889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7831de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7831de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7831de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:41:02.992269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1aaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:41:32.433954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:42:03.074176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fc4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:42:32.549636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1057ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1057ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1057ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:43:03.344716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f822d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f822d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f822d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:43:32.646647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb06ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb06ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb06ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:44:02.658240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbd1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbd1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbd1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:44:31.757421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77fd5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77fd5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77fd5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:45:02.472446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88b93ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:45:31.842900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5d4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5d4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5d4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:46:02.526582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8922def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8922def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8922def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:46:31.941346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f922f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f922f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f922f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:47:02.611667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2), ('/home/nano/Desktop/images/01032025/13/47/image_01032025_13_47_36_30309.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:47:32.087433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ef28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:48:02.792589
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:48:32.181092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa74d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa74d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa74d5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:49:03.021562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f081ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f081ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f081ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:49:32.340481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f68cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f68cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f68cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:50:03.003407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa7a7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:50:32.442845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:51:03.128212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80b16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80b16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80b16ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:51:32.569051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9eb96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9eb96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9eb96ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:52:03.290529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c4d0e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c4d0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c4d0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:52:32.657044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e8ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e8ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e8ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:53:02.417328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f921e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f921e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f921e5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:53:31.818430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c6f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c6f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c6f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:54:02.749772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b7dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b7dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b7dfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:54:31.919515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b782ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b782ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b782ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:55:02.557969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99642ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99642ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99642ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:55:32.021769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae009ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae009ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae009ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:56:02.661128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92906ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92906ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92906ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:56:32.125620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:57:02.819066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6415e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6415e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6415e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:57:32.204288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7db39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7db39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7db39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:59:03.383047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5685ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5685ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5685ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 18:59:32.637511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7022ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7022ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7022ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:00:03.240732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:00:32.734694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e60fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e60fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e60fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:01:02.348888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ce6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ce6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ce6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:01:31.836750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad75ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:02:02.411196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad646ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad646ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad646ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:02:31.954350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:03:02.670497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8063fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8063fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8063fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:03:32.065931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faef7fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef7fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef7fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:04:02.895542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9af5bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9af5bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9af5bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:04:32.140471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d87ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d87ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d87ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:05:02.911905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82abdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82abdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82abdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:05:32.233658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89d1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89d1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89d1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:06:02.871852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e590ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:06:32.326754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fce3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fce3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fce3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:07:02.917712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99db7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99db7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99db7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:07:32.416153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f01ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:08:03.192763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77014ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77014ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77014ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:08:32.518805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:09:03.541096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa046aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa046aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa046aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:09:32.624973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f940a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f940a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f940a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:10:03.234715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac4a4e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac4a4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac4a4e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:10:32.724818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa020bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa020bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa020bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:11:02.302723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89364ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89364ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89364ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:11:31.882810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7934ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7934ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7934ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:12:02.551401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f778a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778a0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:12:31.976239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97fcdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:13:02.667166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76d0e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76d0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76d0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:13:32.068042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b6de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b6de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97b6de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:14:03.028626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93fe0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93fe0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93fe0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:14:32.169210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f970ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f970ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f970ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:15:02.856293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:15:32.235807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:16:02.873824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f48def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f48def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f48def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:16:32.367758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a867ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a867ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a867ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:17:02.845874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cd39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cd39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cd39ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:17:32.446093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95f3bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95f3bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95f3bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:18:03.055603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9589aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9589aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9589aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:18:32.558421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ca8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ca8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ca8eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:19:03.400000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:19:32.647695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f841deef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f841deef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f841deef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:20:02.411307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ca08e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ca08e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ca08e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:20:31.745198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a891ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a891ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a891ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:21:02.369317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e6eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e6eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e6eaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:21:31.858790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa326bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa326bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa326bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:22:02.587632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c201ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c201ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c201ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:22:31.970910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f913ade80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f913ade80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f913ade80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:23:02.703230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9563fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9563fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9563fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:23:32.083753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9035cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9035cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9035cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:24:02.797542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bbb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bbb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bbb4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:24:32.163889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76797ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76797ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76797ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:25:02.852185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93becef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93becef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93becef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:25:32.259657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f204ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f204ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f204ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:26:02.981175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4059ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4059ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4059ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:26:32.353761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e1cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:27:03.178610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bba5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bba5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bba5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:27:32.517018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96abcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96abcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96abcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:28:03.107869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8305aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8305aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8305aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:28:32.620224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab06aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab06aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab06aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:29:03.347268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadca0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadca0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadca0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:29:32.723953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb532ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb532ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb532ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:30:02.534223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f917afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f917afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f917afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:30:31.817996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1295ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:31:02.458374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86667ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86667ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86667ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:31:31.911550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e97fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e97fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e97fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:32:02.653828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93617ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93617ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93617ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:32:32.000667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87a35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87a35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87a35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:33:02.651994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:33:32.090360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d07ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d07ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d07ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:34:03.086730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e9f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e9f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e9f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:34:32.234387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabfe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabfe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabfe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:35:02.853947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f824bce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824bce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824bce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:35:32.332621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f867e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f867e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f867e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:36:02.961737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f924d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f924d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f924d2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:36:32.416045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad38fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad38fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad38fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:37:02.943127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81d35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81d35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81d35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:37:32.507845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f846ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f846ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f846ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:38:03.203612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1936ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1936ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1936ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:38:32.614659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:39:03.490098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d6e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d6e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d6e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:39:32.686851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6075ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6075ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6075ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:40:02.326303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d083ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d083ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d083ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:40:31.793322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1851ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1851ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1851ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:41:02.419055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8efe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8efe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8efe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:41:31.881473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8247fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8247fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8247fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:42:02.450975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb22c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb22c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb22c6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:42:31.966643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84016ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84016ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84016ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:43:02.443724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:43:32.082465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d545e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d545e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d545e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:44:03.018696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9acccef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9acccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9acccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:44:32.165106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b896ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b896ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b896ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:45:02.921087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:45:32.290620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97761ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97761ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97761ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:46:02.888637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8220bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8220bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8220bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:46:32.412155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1a2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:47:03.151606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:47:32.487026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:48:03.238635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819faef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819faef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:48:32.594617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d4e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:49:03.424939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e519ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e519ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e519ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:49:32.714647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b7de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b7de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b7de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:50:02.399163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae650ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:50:31.888091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ace1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ace1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ace1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:51:02.626414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9343cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9343cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9343cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:51:31.993767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92c3ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92c3ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92c3ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:52:02.473725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:52:32.089001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f928feef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f928feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f928feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:53:02.741090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:53:32.203501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/14/53/image_01032025_14_54_05_29301.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f995ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f995ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f995ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:54:03.050434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79c65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79c65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79c65ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:54:32.290002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ab6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ab6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ab6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:55:03.042795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa76c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:55:32.373129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f792d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f792d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f792d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:56:03.105998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7d54e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7d54e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7d54e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:56:32.587046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d3a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d3a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d3a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:57:03.177545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79484ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79484ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79484ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:57:32.660832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:58:02.342855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bf17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bf17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bf17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:59:03.160925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76505ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76505ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76505ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 19:59:32.553261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf40e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf40e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf40e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:00:03.218693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:00:32.635200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae141ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae141ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae141ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:01:03.230224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facf78e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facf78e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facf78e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:01:32.737811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34eeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34eeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb34eeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:02:02.329235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82212ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82212ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82212ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:02:31.838670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a313ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a313ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a313ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:03:02.307149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f784d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f784d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f784d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:03:31.933661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e194ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e194ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e194ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:04:02.853104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78152ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78152ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78152ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:04:32.028622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f953a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:05:02.566680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad92ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:05:32.129030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ce12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ce12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ce12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:06:02.801531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa13f3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa13f3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa13f3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:06:32.239133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0396ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0396ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0396ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:07:02.973014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:07:32.408284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb483def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb483def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb483def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:08:03.007058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f860a2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f860a2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f860a2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:08:32.497279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f950ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950ebef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:09:03.378554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac11de80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac11de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac11de80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:09:32.594869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ddf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ddf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ddf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:10:03.305138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:10:32.694737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f947c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f947c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f947c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:11:02.191233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77198ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77198ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77198ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:11:31.793433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8efc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8efc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8efc2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:12:02.507299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5334ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5334ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5334ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:12:31.901172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c0bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:13:02.569825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dcd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dcd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dcd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:13:31.976338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9253fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9253fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9253fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:14:02.966349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:14:32.086241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab070e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab070e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab070e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:15:02.764185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e2eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:15:32.207064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b38bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b38bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b38bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:16:02.898747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97946ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97946ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97946ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:16:32.308639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2bbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2bbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2bbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:17:02.978510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa126aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa126aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa126aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:17:32.415831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d924ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:18:03.014186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa671eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa671eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa671eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:18:32.509088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c8ece80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c8ece80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c8ece80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:19:03.282915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb219fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb219fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb219fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:19:32.600508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d0ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d0ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d0ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:20:03.140738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faee88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faee88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faee88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:20:32.713277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84a38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84a38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84a38ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:21:02.320422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f809f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f809f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f809f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:21:31.802746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f983d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f983d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f983d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:22:02.598151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7face7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7face7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7face7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:22:31.900234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b98cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b98cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b98cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:23:02.718017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa43e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa43e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa43e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:23:32.026299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb227fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb227fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb227fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:24:02.889061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85e81e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85e81e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85e81e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:24:32.112060
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9546cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9546cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9546cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:25:02.863448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0caef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f0caef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:25:32.353909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa77f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa77f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa77f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:26:03.048388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91312ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91312ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91312ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:26:32.454612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c7ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c7ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c7ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:27:02.878494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2), ('/home/nano/Desktop/images/01032025/15/27/image_01032025_15_27_36_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ade5e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ade5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ade5e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:27:32.558199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb7bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb7bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb7bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:28:03.262832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b082ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b082ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b082ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:28:32.643049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f655ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f655ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f655ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:29:03.470152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90f0fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90f0fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90f0fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:29:32.780070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0f6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:30:02.431477
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f960ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f960ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f960ffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:30:31.866910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94d93e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94d93e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94d93e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:31:02.526436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa968fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa968fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa968fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:31:31.965472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d89cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d89cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d89cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:32:02.800585
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cf1ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cf1ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cf1ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:32:32.079533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa217ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa217ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa217ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:33:02.713154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7acbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7acbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7acbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:33:32.176589
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb410fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb410fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb410fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:34:03.040518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b900ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b900ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b900ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:34:32.279021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa187cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa187cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa187cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:35:02.980482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b9fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b9fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89b9fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:35:32.368408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4aabe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4aabe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4aabe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:36:03.016363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad1aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad1aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ad1aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:36:32.449729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec73e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec73e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec73e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:37:02.948876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c2e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c2e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c2e0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:37:32.544234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa754bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa754bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa754bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:38:03.208316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e97cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e97cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e97cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:38:32.648555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d2b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d2b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d2b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:39:03.417929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc47ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc47ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc47ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:39:32.757669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a7daef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a7daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a7daef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:40:02.526819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f931a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:40:31.848659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80234ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80234ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80234ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:41:02.597453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb67ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb67ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb67ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:41:31.950313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cf4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cf4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cf4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:42:02.639129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa057cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa057cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa057cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:42:32.042511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a1bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a1bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a1bbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:43:02.659988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7274ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7274ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7274ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:43:32.152854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2cece80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2cece80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2cece80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:44:02.961141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf9be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf9be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf9be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:44:32.231072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f6d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f6d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f6d1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:45:02.914230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5e21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5e21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5e21ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:45:32.332611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4338ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4338ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4338ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:46:03.005182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1d6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:46:32.436193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52bee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52bee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52bee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:47:03.112834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f2bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:47:32.547122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ba99e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ba99e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ba99e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:48:03.142077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad358ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad358ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad358ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:48:32.661641
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8618eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8618eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8618eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:49:02.475436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf98eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf98eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf98eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:49:31.746578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb19dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:50:02.335646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad90fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad90fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad90fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:50:31.829401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa058eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa058eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa058eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:51:02.506588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7647fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7647fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7647fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:51:31.963097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4233ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4233ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4233ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:52:02.738037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84024ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84024ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84024ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:52:32.069566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5cfbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5cfbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5cfbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:53:02.761145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa08f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa08f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa08f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:53:32.153108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8093bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8093bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8093bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:54:03.090282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6c74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6c74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6c74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:54:32.240202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:55:02.981911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d501ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d501ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d501ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:55:32.439366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8907cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8907cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8907cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:56:03.017231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb353fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb353fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb353fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:56:32.547893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88092ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88092ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88092ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:57:03.224688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f795b1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795b1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795b1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:57:32.657405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa856fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa856fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa856fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:58:02.252917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa124cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa124cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa124cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:59:03.281285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 20:59:32.462635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b0cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:00:03.175830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9861bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9861bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9861bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:00:32.615115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4134ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4134ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4134ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:01:03.150902
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4445ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4445ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4445ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:01:32.742120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4468e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4468e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4468e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:02:02.449007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f838f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f838f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f838f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:02:31.826784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d17ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:03:02.520961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f841ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f841ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f841ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:03:31.915453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8edeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8edeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8edeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:04:02.740375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d6f7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d6f7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d6f7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:04:32.006434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cd3eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cd3eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cd3eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:05:02.644116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78873e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78873e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78873e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:05:32.115473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6808ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6808ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6808ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:06:02.814160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e93eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e93eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e93eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:06:32.208003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac76e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac76e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac76e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:07:02.977808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3fedef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3fedef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3fedef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:07:32.309199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e7fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:08:03.043016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c99fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c99fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c99fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:08:32.400952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84cfeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84cfeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84cfeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:09:03.457897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f6beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f6beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f6beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:09:32.489210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f873ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f873ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f873ecef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:10:03.122883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b5cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:10:32.613289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f997d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f997d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f997d0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:11:03.385024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f34ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:11:32.717724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78131ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78131ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78131ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:12:02.370332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e65fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e65fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e65fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:12:31.818049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b6bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:13:02.601272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a7a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:13:31.904361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4a44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4a44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4a44ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:14:02.779586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c456ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c456ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c456ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:14:32.018713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ef1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ef1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ef1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:15:02.700901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ebaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ebaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ebaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:15:32.112134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56beef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56beef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:16:02.804654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87e69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87e69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87e69ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:16:32.198894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ad0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ad0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ad0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:17:02.880977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9962def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9962def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9962def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:17:32.289126
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a34cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a34cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a34cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:18:02.908736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dc28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dc28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dc28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:18:32.384942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a4a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:19:03.272571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ca9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ca9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83ca9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:19:32.508837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f811f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f811f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f811f3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:20:03.235775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b7def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b7def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b7def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:20:32.608364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafef7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafef7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafef7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:21:03.220151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e85ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:21:32.702377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:22:02.452927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a9d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a9d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a9d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:22:31.836447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:23:02.501490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faec85e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faec85e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faec85e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:23:31.919143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b4fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:24:02.677067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c420ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c420ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c420ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:24:32.093098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb53c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb53c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb53c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:25:02.432957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cdb7e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cdb7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cdb7e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:25:32.186541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa93efef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa93efef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa93efef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:26:02.766917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a5a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a5a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a5a4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:26:32.304567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9239aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9239aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9239aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:27:02.994063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92d18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:27:32.406505
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab499ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab499ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab499ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:28:03.101273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77daae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77daae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77daae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:28:32.583367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ec1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ec1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ec1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:29:03.483664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2797ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2797ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2797ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:29:32.685268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8afaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8afaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8afaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:30:02.498977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e3fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:30:31.778680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93950ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93950ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93950ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:31:02.487162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:31:31.868425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8995fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8995fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8995fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:32:02.561231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffccef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffccef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:32:31.954650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ae7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ae7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ae7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:33:02.753614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bd5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bd5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bd5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:33:32.066030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa395bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa395bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa395bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:34:02.909055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2), ('/home/nano/Desktop/images/01032025/16/33/image_01032025_16_34_05_30305.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0536e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0536e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0536e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:34:32.187612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ffbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ffbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6ffbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:35:02.788428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0149ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0149ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0149ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:35:32.277607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa79f1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:36:02.944365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c726ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c726ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c726ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:36:32.382337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c3a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c3a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c3a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:37:03.149307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9047eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9047eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9047eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:37:32.495362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e85ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e85ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e85ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:38:03.172540
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f833bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f833bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f833bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:38:32.586433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8509aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8509aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8509aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:39:03.544520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c8d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c8d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c8d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:39:32.707810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:40:02.400643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5c20e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5c20e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5c20e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:40:31.791977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0708ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0708ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0708ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:41:02.412685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90a88ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:41:31.913616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadf54e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadf54e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadf54e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:42:02.512866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e7a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e7a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e7a8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:42:31.986967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f824fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:43:02.711185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2334ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2334ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2334ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:43:32.080322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4bd9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4bd9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4bd9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:44:03.045897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab159ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab159ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab159ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:44:32.189743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f973bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f973bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f973bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:45:02.848495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92988ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92988ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92988ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:45:32.272065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:46:02.699661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd89e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd89e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd89e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:46:32.365334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e6adef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e6adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e6adef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:47:02.913506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b286ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b286ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b286ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:47:32.455934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f969a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f969a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f969a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:48:03.143007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed7cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:48:32.569212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:49:03.429861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab528ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab528ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab528ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:49:32.788024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa92a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa92a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa92a1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:50:02.395954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7943ae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7943ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7943ae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:50:31.852197
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2d89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2d89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2d89ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:51:02.620764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81aaaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81aaaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81aaaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:51:31.948570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faac47ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faac47ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faac47ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:52:02.593698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8105def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8105def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8105def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:52:32.054331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88163ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88163ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88163ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:53:02.708903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa00d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa00d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa00d4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:53:32.160387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9677aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9677aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9677aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:54:03.257101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d1c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d1c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d1c8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:54:32.312914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0edbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0edbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0edbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:55:02.946471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a0fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a0fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a0fbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:55:32.413003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90934ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90934ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90934ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:56:03.006850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8126ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8126ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8126ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:56:32.485087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2888e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2888e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2888e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:57:03.278128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79b62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79b62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79b62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:57:32.573321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ac4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ac4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ac4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:58:03.330930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99670ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99670ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99670ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:59:03.127713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faccf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faccf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faccf6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 21:59:32.411971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f890f6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f890f6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f890f6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:00:03.086127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c233e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c233e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c233e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:00:32.515820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ae9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ae9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ae9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:01:03.160729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3210e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3210e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3210e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:01:32.619194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa079eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa079eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa079eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:02:03.319957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bdd8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:02:32.716202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb50afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb50afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb50afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:03:02.382244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99132ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99132ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99132ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:03:31.830072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dcc0e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dcc0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dcc0e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:04:02.786312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88cb8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88cb8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88cb8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:04:31.970859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3697ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3697ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3697ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:05:02.613715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9784ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9784ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9784ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:05:32.072283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95984ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95984ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95984ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:06:02.814433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae637e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae637e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae637e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:06:32.187967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2), ('/home/nano/Desktop/images/01032025/17/07/image_01032025_17_07_36_30303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c8b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c8b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c8b2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:07:02.807102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ea9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ea9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ea9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:07:32.287174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf35ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:08:02.967992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98bbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98bbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98bbfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:08:32.363270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91226ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91226ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91226ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:09:02.981129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae1a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae1a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae1a6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:09:32.439606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafbe6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:10:03.258286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a05cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a05cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a05cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:10:32.550649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d48eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d48eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d48eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:11:03.194919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadfa7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadfa7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadfa7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:11:32.614347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa527fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa527fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa527fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:12:03.456660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d97e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d97e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d97e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:12:32.733223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af3ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af3ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8af3ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:13:02.457507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab8ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:13:31.837428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f990c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f990c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f990c4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:14:02.835368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa266bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa266bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa266bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:14:31.960591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85b7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85b7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85b7eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:15:02.445061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb15cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb15cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb15cbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:15:32.073890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb371ce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb371ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb371ce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:16:02.845712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e7def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e7def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e7def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:16:32.193730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7516ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7516ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7516ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:17:02.792228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f828e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f828e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f828e1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:17:32.399166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5682ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5682ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5682ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:18:02.889790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7669fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7669fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7669fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:18:32.497326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79e18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79e18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79e18ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:19:03.378716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83dadef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83dadef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83dadef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:19:32.600366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb9cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:20:03.238133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8231fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8231fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8231fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:20:32.726394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9617ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9617ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9617ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:21:02.425012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa992eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa992eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa992eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:21:31.812309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:22:02.444628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a50eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a50eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a50eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:22:31.902088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa19ace80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa19ace80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa19ace80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:23:02.661660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5514ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5514ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5514ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:23:32.007963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb42e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb42e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb42e3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:24:02.712128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f885c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f885c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f885c7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:24:32.097459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb48b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb48b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb48b4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:25:02.815737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92b6fe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92b6fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92b6fe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:25:32.211165
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3cfdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3cfdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3cfdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:26:02.691224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b5eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:26:32.293259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa72f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa72f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa72f8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:27:02.937194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa794eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa794eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa794eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:27:32.385373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8beb8e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8beb8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8beb8e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:28:02.987712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97da1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97da1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97da1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:28:32.496852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb127def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb127def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb127def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:29:03.266951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86b77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86b77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86b77ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:29:32.583882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87192ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:30:03.301159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78251ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78251ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78251ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:30:32.682074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f902f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902f2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:31:02.312279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1bce80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1bce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1bce80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:31:31.795155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabfd3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabfd3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabfd3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:32:02.352998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f881b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f881b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f881b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:32:31.875684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9254ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9254ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9254ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:33:02.531786
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e9e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e9e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e9e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:33:31.966539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90f62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90f62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90f62ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:34:02.932971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa63dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa63dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa63dcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:34:32.146406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ea4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ea4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ea4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:35:02.806221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0aa3e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0aa3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0aa3e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:35:32.263209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f9aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f9aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f9aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:36:02.994091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d22ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:36:32.369462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faed9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faed9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faed9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:37:02.910969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db6eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:37:32.509871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d698ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d698ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d698ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:38:03.165816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7473ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:38:32.654857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:39:03.646539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd55ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:39:32.730807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96719e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96719e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96719e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:40:02.423026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa91bee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa91bee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa91bee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:40:31.846235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f915f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f915f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f915f7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:41:02.650582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa29ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa29ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa29ddef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:41:31.951315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f902b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902b3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:42:02.580719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5233ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5233ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5233ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:42:32.027351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f897ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f897ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f897ceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:43:02.876099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8216fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8216fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8216fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:43:32.137037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad4c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad4c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad4c3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:44:03.080795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa380bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa380bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa380bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:44:32.213441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82ff7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82ff7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82ff7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:45:02.854347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:45:32.305738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa85a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa85a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa85a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:46:02.823241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa98be80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa98be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa98be80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:46:32.413142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8806cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8806cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8806cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:47:03.168332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa60d8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:47:32.522546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9637fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9637fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9637fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:48:03.286683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dc0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dc0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dc0aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:48:32.610179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ecaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ecaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ecaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:49:03.618522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84119ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84119ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84119ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:49:32.710310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e24bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e24bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e24bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:50:02.383594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb57f1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb57f1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb57f1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:50:31.804626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae77ee80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae77ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae77ee80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:51:02.514612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91d30ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:51:31.903300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93531ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93531ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93531ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:52:02.459931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f25fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f25fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f25fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:52:32.001280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a8d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a8d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a8d7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:53:02.593528
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f5fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f5fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4f5fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:53:32.081606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7aeceef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7aeceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7aeceef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:54:02.935362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f818a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f818a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f818a8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:54:32.176821
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f919a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f919a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f919a9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:55:02.947437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5acef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:55:32.273365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dd73ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:56:03.035109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1fcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:56:32.378425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3e9bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:57:03.054782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77835ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77835ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77835ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:57:32.449681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84b78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84b78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84b78ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:58:03.018399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa90e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa90e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa90e2ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:59:02.575967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78097ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78097ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78097ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 22:59:31.940138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1bd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1bd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1bd4ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:00:02.484282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79eb1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79eb1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79eb1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:00:32.027788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81480e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81480e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81480e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:01:02.625523
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f865b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f865b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f865b9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:01:32.127445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4fb6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4fb6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4fb6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:02:02.597234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab0baef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab0baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab0baef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:02:32.234248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:03:02.900267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82692e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82692e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82692e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:03:32.311908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3948ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3948ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3948ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:04:03.155667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b987ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b987ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b987ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:04:32.427308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb005def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb005def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb005def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:05:03.109587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aefbe80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aefbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8aefbe80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:05:32.546000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9020ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9020ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9020ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:06:03.344644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1af1e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1af1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1af1e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:06:32.652824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dad8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dad8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8dad8ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:07:02.321595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5fa6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5fa6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5fa6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:07:31.778352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b57ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:08:02.297498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77966ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77966ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77966ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:08:31.861958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b1eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:09:02.716824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95c74ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:09:31.970428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35bfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:10:02.546844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6447ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6447ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6447ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:10:32.066623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0b9aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0b9aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0b9aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:11:02.793700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec1aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec1aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec1aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:11:32.165834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad409ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad409ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad409ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:12:02.905585
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85aa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85aa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85aa0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:12:32.279068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b07fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b07fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b07fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:13:02.840657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc72ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc72ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadc72ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:13:32.387527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2), ('/home/nano/Desktop/images/01032025/18/13/image_01032025_18_14_06_30290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2632e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2632e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2632e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:14:03.401728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f2a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f2a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f2a5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:14:32.475339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f828eae80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f828eae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f828eae80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:15:03.072041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7daffef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7daffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7daffef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:15:32.570139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82185ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82185ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82185ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:16:03.331626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8830ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8830ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8830ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:16:32.687475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f852f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f852f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f852f9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:17:02.429735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98a8fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98a8fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98a8fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:17:31.812639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad574ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad574ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad574ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:18:02.331058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97272ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97272ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97272ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:18:31.965092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b00cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b00cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b00cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:19:02.924436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98be7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98be7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98be7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:19:32.079196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa926def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa926def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa926def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:20:02.796013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b6cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:20:32.186180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8413def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8413def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8413def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:21:02.748040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4072e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4072e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4072e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:21:32.273871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa662bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa662bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa662bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:22:02.886245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90960ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90960ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90960ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:22:32.357777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ee2e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ee2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ee2e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:23:03.004458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f778feef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778feef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:23:32.484442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ec02e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ec02e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ec02e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:24:03.218019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90aabef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90aabef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90aabef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:24:32.579504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae700ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae700ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae700ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:25:03.310871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84e10e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84e10e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84e10e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:25:32.695571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa0c5ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:26:02.394245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:26:31.796647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f818cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f818cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f818cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:27:02.421561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7de0def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7de0def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7de0def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:27:31.866618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2054ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2054ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2054ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:28:02.449723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7818ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7818ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7818ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:28:31.958157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94061ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94061ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94061ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:29:02.892605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb20dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb20dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb20dbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:29:32.062710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d15ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:30:02.769558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef9eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:30:32.186935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96b51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96b51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96b51ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:31:02.803514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae223e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae223e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae223e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:31:32.300912
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81843ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81843ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81843ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:32:03.074885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faba4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faba4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faba4eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:32:32.384169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e39e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e39e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7e39e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:33:02.990237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:33:32.512424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d022ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d022ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d022ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:34:03.409764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86b45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86b45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86b45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:34:32.609320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cb40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cb40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cb40ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:35:03.388127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:35:32.722190
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadda9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadda9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadda9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:36:02.325838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9035aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9035aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9035aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:36:31.822960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e4def0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:37:02.593931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e83ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e83ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e83ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:37:31.918581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2cdfef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2cdfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2cdfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:38:02.664034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b3e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b3e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b3e6ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:38:32.038633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f927acef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f927acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f927acef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:39:03.074388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82327e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82327e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82327e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:39:32.194294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb318cef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb318cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb318cef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:40:02.963793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1dfcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1dfcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1dfcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:40:32.279054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91dd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91dd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91dd7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:41:03.053140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47aeef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:41:32.383443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cd49ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:42:03.188497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb18b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb18b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb18b1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:42:32.487724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98bd3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98bd3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98bd3ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:43:03.271794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3a81ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:43:32.598220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88cfdef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88cfdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88cfdef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:44:03.407262
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1e9ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:44:32.728662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76534e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76534e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76534e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:45:02.439008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad191ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad191ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad191ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:45:31.822152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87a68ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87a68ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87a68ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:46:02.459544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f374e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f374e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f374e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:46:31.915802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98b12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98b12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98b12ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:47:02.505834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2), ('/home/nano/Desktop/images/01032025/18/47/image_01032025_18_47_36_30285.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ae28ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:47:32.043127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ed6e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ed6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ed6e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:48:02.691646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8afb1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8afb1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8afb1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:48:32.144623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f9fef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f9fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9f9fef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:49:03.067384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94908e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94908e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94908e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:49:32.251788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f985afef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f985afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f985afef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:50:02.979079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ecbef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ecbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89ecbef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:50:32.349671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6771e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6771e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6771e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:51:03.106296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fc43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fc43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fc43ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:51:32.451184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78bfaef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78bfaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78bfaef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:52:03.100200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98efcef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98efcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98efcef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:52:32.558116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c08e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c08e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c08e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:53:03.179908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92e45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92e45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92e45ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:53:32.699235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaef7ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:54:02.696967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa372eef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa372eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa372eef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:54:31.791457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa17c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa17c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa17c1ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:55:02.443130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1960e80>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1960e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1960e80>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:55:31.913996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa791bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa791bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa791bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:56:02.489643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c66aef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c66aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c66aef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:56:32.047195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0dd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0dd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0dd0ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:57:02.667402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47abef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47abef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:57:32.143903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9282bef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9282bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9282bef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_new_image -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-01 23:58:02.746508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_new_image_01032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250301 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/01032025/23/47/image_01032025_23_47_35_30283.jpg', 2), ('/home/nano/Desktop/images/01032025/23/13/image_01032025_23_14_05_29277.jpg', 2), ('/home/nano/Desktop/images/01032025/22/07/image_01032025_22_07_35_29282.jpg', 2), ('/home/nano/Desktop/images/01032025/21/33/image_01032025_21_34_05_29284.jpg', 2), ('/home/nano/Desktop/images/01032025/20/27/image_01032025_20_27_35_29281.jpg', 2), ('/home/nano/Desktop/images/01032025/19/53/image_01032025_19_54_06_30291.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_01032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96189ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
